Questions tagged [runtime-upgrade]
The runtime-upgrade tag has no usage guidance.
130
questions
0
votes
0
answers
5
views
Getting `Input("rpc finalized_head failed.")` while running try-runtime
I am trying to verify runtime-upgrade through try-runtime against a live environment using below commands:
cargo build --release --features try-runtime
try-runtime --runtime ./target/release/wbuild/...
0
votes
1
answer
9
views
What is the proper way to replace a pallet with an entirely new one in a runtime migration?
We have pallet_xyz and we want to replace it with pallet_abc at the exact same pallet index, i.e. just removing one and replacing the other. What's the proper way to migrate this?
More specifically, ...
1
vote
2
answers
35
views
ERROR try-runtime::cli] ❌ Weight safety issues detected
Hi I am trying to run try-runtime to verify runtime upgrade but getting below error after migration is executed.
storage updated to v2! Migrated 124247 clouds ✅
2024-07-20T13:41:19.4485438Z [2024-07-...
1
vote
1
answer
38
views
Runtime Upgrade with Block Time Change Stops Block Production
I am performing a runtime upgrade for my Substrate-based blockchain, specifically changing the block time from 6 seconds to 1 second. The upgrade is executed successfully using the set_code function, ...
0
votes
1
answer
91
views
Getting error expected `MiniSecretKey`, found `schnorrkel::keys::MiniSecretKey`
I have a test-suite that is based on sub-xt. This is also pulled in the suite as a dependency in cargo.toml as follows.
[dependencies]
subxt = { version = "0.37.0", git = "https://...
0
votes
0
answers
11
views
Runtime Upgrade from standard Node Template to Frontier Template Node
I’m curious, is it possible to do a runtime upgrade that also adds EVM functionality?
Currently my project has a solochain that is already public and we’d like to integrate EVM functionality/...
0
votes
0
answers
36
views
Can't sync with network
We have a solochain testnet running with a lot of users. Our nodes managed by us yet. Some blocks ago the nodes stopped producing new blocks, because of a crash in a pallet. The pallet was from ...
1
vote
1
answer
24
views
How to manage compatibility of changing inherents between versions?
Basically, the title. What are the strategies around updating inherents over time and maintaining backwards-compatibility? How would I for example, take one inherent's InherentData, and update its ...
1
vote
1
answer
35
views
What's the correct way to add a new pallet to a live runtime?
Aside from the obvious, configuring the pallet and adding it to the construct_runtime! invocation, what else needs to be done that isn't mentioned in the substrate tutorials?
For example, it's also ...
1
vote
1
answer
46
views
Inherent extrinsic returned unexpected error: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed'
Our parachain is running on the polkadot relaychain, when we upgrade the runtime, we're facing the following errors shown in the collator's logs:
2024-05-09 07:43:30.376 INFO tokio-runtime-worker ...
1
vote
0
answers
23
views
How to upgrade runtime without sudo?
Is it the process below that I just want to confirm?
const preimageHash = await api.rpc.democracy.notePreimage(runtimeWasm);
const proposalHash = await api.tx.democracy.propose(preimageHash, 'New ...
0
votes
2
answers
41
views
Is it it possible to change native token decimals of chain that is already running?
A blockchain I am working on enabled Frontier recently but since EVM chains' native tokens got 18 decimals by default and the chain's native token decimals are set to 12 we need to do decimals ...
3
votes
1
answer
147
views
Sync error while upgrading Polkadot SDK from 1.0 to 1.6
We're in the process of updating the Polimec runtime and node from the Polkadot SDK 1.0 to 1.6. We're doing the final tests before the merge and we are encountering an issue while syncing the ...
3
votes
3
answers
120
views
"Slot number mismatch" after runtime upgrade
I'm upgrading a Parachain from Polkadot v1.6 to v1.8 (in one go). I followed all the instructions provided on the Polkadot wiki and I'm now applying the changes in step 3. I start a local network (...
0
votes
1
answer
26
views
No matching package named 'evm-gasometer found'
My node is on the substrate branch polkadot-v0.9.19. I have bumped it to polkadot-v0.9.22. After bumping the version I am trying to build the node in release mode using the following command.
cargo ...
3
votes
1
answer
107
views
Runtime upgrade for `ParachainSystem::HostConfiguration`
When testing my runtime upgrade from polkadot_v1.0.0 to 1.5.0 with try-runtime I get this error from try-runtime
[2024-02-06T14:50:51Z ERROR runtime::executive] - 0. error: Failed to decode storage ...
1
vote
0
answers
49
views
Errors shown during runtime time uprgrade, are they normal?
I've just performed a runtime upgrade for a parachain running on rococo, and although the runtime upgrade succeeded in the end, the log seems to show that it the upgrade was run 3 times, and the first ...
2
votes
1
answer
52
views
Parachain stops producing blocks after runtime upgrade
I am testing a parachain runtime upgrade locally. After calling the enactAuthorizeUpgrade, the parachain stops producing blocks, and the logs show error: Collation wasn't advertised to any validator.
...
1
vote
1
answer
54
views
How does parachain upgrade works?
Let we have a running parachain on kusama and want to do a runtime upgrade. New runtime is bigger then the old one by 100 kb. New runtime will be stored on the relay chain after runtime upgrade ...
2
votes
1
answer
63
views
when will `‘Balances::transfer' will be removed` take into effect on main-net?
In this link Balances::transfer will be removed it say 'transfer' is deprecated.
I have experienced this change on test-net and fixed my Dapp after got failure report.
But when does it take into ...
3
votes
0
answers
62
views
Costs and Payment for Runtime Upgrades in Parachains
I'm currently working with Substrate parachains and have question that I'm hoping to get clarity on:
Payment for Runtime Upgrade Execution: In a parachain context, when a runtime upgrade (an extrinsic)...
1
vote
1
answer
76
views
`Corrupted state at` after upgrade from 0.9.39 to 0.9.43
I have the following error in the logs:
2023-11-20 11:47:02 Corrupted state at `[206, 197, 7, 13, 96, 157, 211, 73, 127, 114, 189, 224, 127, 201, 107, 160, 224, 205, 208, 98, 230, 234, 242, 66, 149, ...
3
votes
0
answers
65
views
Recovering a Bricked (no block production) Parachain on Rococo, Kusama, & Polkadot
Introduction
In the Substrate ecosystem, a bricked parachain – one that has halted block production – presents a unique set of challenges. This situation can occur in various environments, notably on ...
2
votes
1
answer
97
views
Hooks doesn't expose `try_on_runtime_upgrade`?
If defining migrations in structs that impl OnRuntimeUpgrade. And these structs are then put into a Tuple migration, pre and post-upgrade hooks are noops on the tuple.
See this issue.
The idea being ...
1
vote
1
answer
25
views
Can the spec_name of the RuntimeVersion be changed on a runtime upgrade?
Can the spec_name of the RuntimeVersion be changed on a runtime upgrade? And if so, can the check performed by the try-runtime cli that the spec_names have to match be disabled?
3
votes
1
answer
91
views
What needs to be done to change the consensus from POA to POS through a runtime upgrade?
Currently my chain(solo-chain) is on production which is working on POA. Now I have integrated the staking pallet after then when i am going to upgrade that code in the old prod chain by runtime ...
1
vote
1
answer
56
views
No way to do a runtime-upgrade after we upgraded our mainnet chain to version 0.9.31 version
Recently in Ternoa mainnet we performed a RU(runtime upgrade) to upgrade our versions to polkato-v0.9.31. In system pallet substrate have introduced new extrinsic set_code in this version which ...
0
votes
0
answers
13
views
not all trait items implemented, missing: `score_update_worst_case`
I am unable to build try-runtime features.
My command: cargo build --features try-runtime --release
My issue:
impl<T: Config> SortedListProvider<T::AccountId> for UseValidatorsMap<T&...
1
vote
0
answers
62
views
move_pallet: What is correct way to verify old pallet storage is deleted
In trying to use a migration implementation for substrate which can be used to rename BagsList to VoterList, using move_pallet a post migration check is failing when testing the migration with try-...
2
votes
2
answers
63
views
Steps for migration from polkadot-v0.9.30 to polkadot-v0.9.43/v1.0.0
At Ternoa we are trying to do a long jump from polkadot-v0.9.30 to polkadot-v0.9.43 or the latest. We would like to get some suggestions here if someone or some projects already experienced this much ...
0
votes
1
answer
68
views
Try-runtime error, runtime is NOT compiled with try-runtime feature
I am struggling with following error, any thoughts what can cause it? I am compiling WASM blob with following command:
cargo build --release --features try-runtime --package frontier-template-runtime ...
1
vote
0
answers
65
views
Parachain stuck at authoring runtime upgrade block
Our testnet parachain is stuck exactly at the block in which the runtime upgrade is authored. It was authorized and enacted via parachainSystem as recommended. The upgrade neither includes any ...
0
votes
1
answer
71
views
Is runtime upgrade needed when changing offchain worker?
Suppose I have a blockchain that has been running for some time, and at a certain point, I need to update the offchain worker code. What is the recommended approach for updating the blockchain: ...
1
vote
1
answer
47
views
polkadot explorer getting stuck while using utility and sudo pallet from extrinsics
I am trying to do a runtime upgrade of my blockchain that is layer 0 chain running on version polkado-v0.9.36 . I also have (ethereum virtual machine integrated to it ).
When I do runtime upgrade ...
1
vote
1
answer
49
views
Getting schedular overweight error while doing runtime upgrade
I am trying to do a runtime upgrade through democracy referenda and the steps I performed are as follows:
create pre-image.
submit pre-image through democracy .
endorse
voting .
After this I am ...
2
votes
1
answer
67
views
How to hardcode few AccountIds to a storage in migration?
During a storage migration I want to add few SS58 Address in one storage. How to hardcode it in migration script?
1
vote
1
answer
25
views
How to get rid unused storage?
Let's say we get rid of a pallet after a runtime upgrade. My question is do the storage keys related to the now removed pallet just get pruned away automatically or is there some kind of manual ...
5
votes
1
answer
126
views
After doing runtime upgrade getting contract not found in substrate contracts ui
I am doing runtime upgrade of substrate blockchain from 0.9.36 --> 0.9.37 --->0.9.43 . And i have some contracts deployed on the running blockchain which is running on 36 version . After doing ...
0
votes
0
answers
64
views
Storage Migration failed even after we tested with fork-off
We have a live testnet chain where we planned a runtime upgrade (RU). Before performing RU in the live chain we performed fork-off of that chain to get all the states same as it is and started a local ...
1
vote
0
answers
109
views
Getting error after doing runtime upgrade to substrate v1.0.0
I am trying to do runtime upgrade of substrate blockchain which is running on 0.9.36 version to substrate version v1.0.0 . While doing runtime upgrade chain stops working and getting this error in ...
3
votes
1
answer
118
views
Troubleshooting Persistent Error Following Parachain Runtime Upgrade Despite Code Modification
We recently attempted a runtime upgrade on our parachain testnet (wss://moonbeam-integration-parachain.polkadex.trade) and made some modifications to the validate_unsigned code, specifically ...
1
vote
1
answer
32
views
Error WrongProposalWeight when proposing a runtime upgrade using the council
When trying to propose a system.setCode motion the extrinsic fails with WrongProposalWeight. We are experiencing this issue only with the above extrinsic and on polkadot-0.9.42 version.
On an earlier ...
0
votes
2
answers
58
views
No governance within substrate-parachain-template
Does anyone know why the template provided in this repo doesn't include any governance? I noticed that the Cumulus repo does include a sudo.
I run a parachain using this template and was unable to ...
4
votes
1
answer
142
views
How to perform Parachain Runtime Upgrade via Democracy using Chopsticks
I am trying to perform a runtime upgrade using Acala's Chopsticks. I used this command:
npx @acala-network/chopsticks@latest xcm -r ./configs/polkadot.yml -p ./configs/my_config.yml
I followed the ...
4
votes
1
answer
129
views
Unable to sync after runtime upgrade
After performing an upgrade on a remote node that includes a new pallet in my runtime, I attempted to sync a local node with the remote one, but I encountered the following error:
Bootnode with peer ...
3
votes
1
answer
140
views
Upgrade parachain without sudo
I have a parachain with no sudo pallet. However, in order to perform an upgrade, the first step authorize requires Root origin.
As a workaround, I have tried to run ForceScheduleCodeUpgrade from the ...
5
votes
1
answer
161
views
How to make a parachain runtime upgrade
I´m trying to make a parachain runtime upgrade without a migration, as a way to understand the process before trying with a migration.
I´m using version 0.9.40 of polkadot for the relay chain and the ...
3
votes
1
answer
96
views
error[E0405]: cannot find trait `Signature` in crate `signature`
I am currently upgrading our chain to polkadot-v0.9.38 but when I run the build I get the following error:
error[E0405]: cannot find trait `Signature` in crate `signature`
--> /home/albrayanov/....
2
votes
0
answers
76
views
Which pallets cannot be added through a runtime upgrade?
We started our chain using substrate-node-template which is using PoA consensus with Aura for block production. Now we are trying to move to PoS with Babe. We found out that it is not possible to ...
2
votes
1
answer
25
views
During runtime upgrade, I estimate gas fee by PaymentQueryInfo api, the return result value is so high, more than the normal value
why cause this?
result, err := client.SignedExtrinsic(
"0x186c09cac19834761b573b238b6542257d05b1fc5a57688311345d8cdf7e488d",
"5FjKC4iC797yUWmFJuirEWqvVA2ABy3d41ugxZfHyrHs2AYx&...