Questions tagged [runtime-upgrade]
The runtime-upgrade tag has no usage guidance.
36
questions
0
votes
1
answer
9
views
Can you update a genesis configuration via forkless upgrade?
If I have a substrate based blockchain live with a genesis configuration & it also is included a parachain in Polkadot. Now if I want to do a forkless upgrade to the chain, is it possible to ...
0
votes
0
answers
14
views
Exported method `TryRuntime_on_runtime_upgrade` is not found
cargo run --features try-runtime try-runtime \
--execution Native \
--chain dev \
on-runtime-upgrade \
live \
--uri ws://xxxxxxxx
I implemented try-runtime according to the ...
2
votes
0
answers
50
views
Update Substrate node from v2.0.1 to v3.0.0 in live network
I am updating the Substrate node from v2.0.1 to v3.0.0 in live network*.
The initial plan was to merge the v3 code by following the official guidelines, build the new wasm and use a forkless runtime ...
0
votes
1
answer
24
views
Do changes from unbounded to bounded storage need runtime migration?
Currently across the substrate code base, there are a lot of PRs updating storage items to bounded forms, example: https://github.com/paritytech/substrate/pull/11591/
I am wondering what is the ...
2
votes
1
answer
20
views
RPC node encounter `Cannot create a runtime error=Other(\"runtime requires function imports which are not present on the host:` after upgrade
I got a problem with upgrading my chain
I've upgraded my chain from version A (Client+runtime) to version B (Client+runtime). I remove some host functions in client version B because runtime version B ...
0
votes
2
answers
32
views
Pallet declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(0)`
After a runtime upgrade on Frontier, these warnings are logged:
In this case, the pallets are related to Frontier only, but that seems possible for any FRAME pallets.
Does anything need to be done ...
1
vote
1
answer
62
views
parachain-system can not get ParachainInherentData After runtime upgrade
Before this setCode upgrade, our parachain works well.
After setCode upgrade, we get the following error log.
Jun 02 09:39:36 Parami-AWS-SFO-DANA-01 parami[490]: 2022-06-02 09:39:36 ⚠️ ParachainSystem ...
0
votes
1
answer
42
views
Guide or Best practice for parachain Runtime Upgrade(Exception handle or rollback)!
The forkless runtime upgrade is an excellent feature!
I have searched many documents on runtime upgrade, but no guide found for handling upgrade exceptions or rollback.
The most exception often ...
5
votes
0
answers
31
views
best practice to test a runtime with large chain state before runtime upgrade?
As the chain state goes larger and larger, it gets hard to export/fetch the chain state.
Are there any other tools aside from fork-off-substrate and try-runtime for performing a runtime migration?
0
votes
1
answer
34
views
sudo authorizeUpgrade return invalid?
What is sudo invalid mean? This error happened when I did a parachain authorizeUpgrade. I had upgrade success many times in some way. But this is the first time I got this error.
Is it mean code ...
1
vote
1
answer
58
views
How do I know if I will need a storage migration along a forkless upgrade?
I have a blockchain running a version of Frontier from september 2021, and want to upgrade it to the latest commits.
I'm prepared to do a forkless upgrade, but who do I know if I will need storage ...
1
vote
1
answer
40
views
(FIXED) Substrate forkless upgrade tutorial: pallet_scheduler has breaking changes [closed]
(This question was originally asked here: https://stackoverflow.com/questions/72056703/substrate-forkless-upgrade-tutorial-pallet-scheduler-has-breaking-changes)
I am following the Substrate forkless ...
2
votes
3
answers
45
views
Ethereum chain as a Substrate chain
Is it technically possible to upgrade Ethereum to be Substrate compatible blockchain?
I understand there is likely to be strong resistance toward such idea in ETH community but I am interested only ...
2
votes
2
answers
120
views
Debug corrupted on dev update
We are performing upgrade on a chain, in the dev side just to ensure all is OK we do step by step using a forked state of the live chain, we got corrupted state log which we want to debug in order to ...
1
vote
2
answers
63
views
Runtime upgrade error: host doesn't provide such function: env:ext_storage_root_version_2
Our goal is to migrate code to the newer substrate version and keep the block history.
My old running node substrate version is tag = 'monthly-2021-09+1' -> New substrate version is branch = "...
1
vote
1
answer
20
views
If on_runtime_upgrade exceeds block time
I'm running a migration, and I'd like to understand if on_runtime_upgrade exceeds block time, Substrate still can handle this correctly or not? What are the consequences?
1
vote
0
answers
38
views
Abnormal large delays between wasm-code getting stored and applied
We had a runtime upgrade on kusama-parachain recently (9050 -> 9060), where the parachain stalled for 20min. Eventually, it self healed, but I find it abnormal as I have never seen such a big delay ...
2
votes
2
answers
37
views
Runtime upgrade error: parachainSystem.ValidationDataNotAvailable
Follow this doc: https://docs.substrate.io/tutorials/v3/forkless-upgrades/#upgrade-the-runtime-1.
Scheduled and set_code show an error: ValidationDataNotAvailable.
Do I miss something? How to fix this ...
6
votes
1
answer
166
views
How would someone go without the SUDO pallet?
I've seen in multiple online networks(chains) that they do not use the pallet sudo. We're trying to figure out how to take the pallet out of our network in order to leave everything to Governance.
For ...
3
votes
1
answer
27
views
How does frequent updates to polkadot affect the operation of the polkadot chain itself?
I understand the concept of forkless updates, in that the code of the runtime is stored on the chain itself, and a runtime upgrade would entail updating this storage value on the chain. But looking at ...
0
votes
1
answer
19
views
Can I modify the `BlockHashCount` on my chain safely to change transaction mortality?
Background
Transaction Mortality is described on the Polkadot Wiki as:
Extrinsics can be mortal or immortal... If the extrinsic is not
included in a block within this validity window, it will be ...
1
vote
3
answers
46
views
Is there way to listen for runtime upgrades within the node
I'm looking for some kind of hook or channel in the node that gets triggered immediately after the runtime upgrade. Something like on_runtime_upgrade that is available for pallets.
1
vote
0
answers
16
views
Failed to do runtime upgrade: FailedToExtractRuntimeVersion
When trying to migrate the runtime from a very early version of substrate 3 (aug 2021) to polkadot 0.9.18 we are getting the following error:
Failed to extract the runtime version from the new ...
3
votes
1
answer
46
views
Runtime upgrade error: system.FailedToExtractRuntimeVersion
Our goal is to migrate pallet code to the newer Substrate version and keep the block history (since ~ august 2020).
Old Substrate ver. (10.02.2021) -> New Substrate ver. (14.01.2022)
For such ...
2
votes
2
answers
58
views
What could happen if the `BlockWeights` is set HIGHER than `MILLISECS_PER_BLOCK` (block time)?
In Substrate docs, it's said:
"The maximum block weight should be equivalent to one-third of the target block time, allocating one third for block construction, one third for network propagation, ...
3
votes
1
answer
60
views
How do I upgrade my node's RPC?
Following along the Substrate's Forkless Upgrades guide. I can upgrade the runtime but I can't figure it out how to upgrade my pallet's RPC.
I have commented the below code for testing purposes and ...
3
votes
2
answers
131
views
Storage Migration Guide Using #[pallet::storage]
I am new to both substrate and rust so trying to educate myself. I've the read documentation for both and am now going through the various tutorials and guides. I'm currently on the Basic Storage ...
6
votes
1
answer
42
views
Backward compatible changes in the runtime
If I add a new field to a struct that is not stored in storage but used as a parameter to an extrinsic, will it break decoding if a node with the changed runtime is syncing (i.e. executing older ...
5
votes
1
answer
46
views
Unstuck non-upgraded Parachain
A parachain had an upgrade schedule on a relay chain, but the upgrade did not go through, forcing the parachain to stop producing blocks. I tried forcing a new validationCode using SUDO, but that did ...
7
votes
2
answers
84
views
What is the proper way of executing a runtime upgrade on a parachain?
I would like to upgrade my parachain.
What is the proper way of executing a runtime upgrade on a parachain?
Which RPC method to call?
Should this be applied to collators or rpc-nodes?
6
votes
1
answer
53
views
When are you required to change the `authoring_version` for forkless runtime upgrades?
In the Substrate documentation here and the Substrate reference documentation here it says the authoring_version "is the version of the authorship interface. An authoring node will not attempt to ...
3
votes
1
answer
31
views
What is the Incomplete Execution error on parachain upgrade?
I have been upgrading my parachain many times over the last few days with no issue at all. I have been using Polkadotjs Apps for this also running on my local machine.
My process is that I use the ...
0
votes
1
answer
33
views
Testing RPC clients for runtime upgrades in advance
Is there a way to test Polkadot and Kusama RPC client applications for a runtime upgrade before it gets enacted? i.e. Is there a way to emulate the upgraded runtime in a sandbox environment?
7
votes
1
answer
72
views
Why is the Rococo `maxCodeSize` too small to do adequate incremental runtime upgrades? [closed]
If we want to connect a parachain to Rococo's 'rococo-local' relay chain we follow this Cumulus tutorial using polkadot-launch. Part of the pre-launch steps mentioned here is to minimize your runtime ...
5
votes
1
answer
34
views
Is it clear what is behind the block time slow down we're seeing in Kusama Parachains, and how close is it to being solved?
We've seen a significant slow down of block time on Kusama. It seems that this may be related to the deployment od client v0.9.16.
It is clear what is behind the slow down?
If so, how close are we to ...
5
votes
2
answers
95
views
Runtime Upgrade: Transaction exhaust block limits
I usually use scheduler to upgrade my runtime and it was working fine until now.
I have Transaction exhaust block limits trying to upgrade live chain. I build the wasm using srtool v0.9.19, and the ...