Questions tagged [runtime-upgrade]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
21 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 ...
Verin's user avatar
  • 21
0 votes
2 answers
32 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 ...
chexware's user avatar
  • 325
3 votes
1 answer
124 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 ...
Leonardo Razovic's user avatar
3 votes
3 answers
72 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 (...
Daan van der Plas's user avatar
0 votes
1 answer
22 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 ...
RRR's user avatar
  • 43
3 votes
1 answer
95 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 ...
Simson's user avatar
  • 1,201
1 vote
0 answers
42 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 ...
Sebastian's user avatar
  • 407
2 votes
1 answer
42 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. ...
Sebastian's user avatar
  • 407
1 vote
1 answer
49 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 ...
Данила Алексеев's user avatar
2 votes
1 answer
59 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 ...
breeze wang's user avatar
3 votes
0 answers
61 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)...
ALeSD's user avatar
  • 489
1 vote
1 answer
63 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, ...
Yurtur's user avatar
  • 23
2 votes
0 answers
55 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 ...
Cedric Decoster's user avatar
2 votes
1 answer
94 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 ...
Kyle's user avatar
  • 311
1 vote
1 answer
22 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?
Sebastian's user avatar
  • 407
3 votes
1 answer
85 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 ...
Pankaj's user avatar
  • 2,031
1 vote
1 answer
52 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 ...
Immanuel John's user avatar
0 votes
0 answers
12 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&...
CocDap's user avatar
  • 678
0 votes
0 answers
58 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-...
Mokhtar Naamani's user avatar
2 votes
2 answers
62 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 ...
Immanuel John's user avatar
0 votes
1 answer
53 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 ...
Klapeyron's user avatar
  • 111
1 vote
0 answers
54 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 ...
William Freudenberger's user avatar
0 votes
1 answer
65 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: ...
subuser's user avatar
1 vote
1 answer
44 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 ...
Karanvir Singh's user avatar
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 ...
Shubham Gupta's user avatar
2 votes
1 answer
46 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?
Immanuel John's user avatar
1 vote
1 answer
20 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 ...
Purple_Turtle's user avatar
5 votes
1 answer
119 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 ...
Karanvir Singh's user avatar
0 votes
0 answers
63 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 ...
Immanuel John's user avatar
1 vote
0 answers
100 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 ...
Karanvir Singh's user avatar
3 votes
1 answer
114 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 ...
ZKT's user avatar
  • 113
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 ...
Dylan Verstraete's user avatar
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 ...
magecnion's user avatar
  • 222
4 votes
1 answer
112 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 ...
Jitterbug's user avatar
  • 219
4 votes
1 answer
124 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 ...
magecnion's user avatar
  • 222
3 votes
1 answer
132 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 ...
magecnion's user avatar
  • 222
5 votes
1 answer
155 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 ...
Xavier's user avatar
  • 415
3 votes
1 answer
87 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/....
chexware's user avatar
  • 325
2 votes
0 answers
74 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 ...
Sachin's user avatar
  • 61
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&...
Abel's user avatar
  • 61
3 votes
3 answers
1k views

1010: Invalid Transaction: Transaction has a bad signature

I am getting this error on the block explorer "Extrinsics" tab the moment I add a debug related code into a Hello pallet into the node-template repo. E.g: #[pallet::call_index(0)] #[pallet::...
abhi3700's user avatar
  • 131
3 votes
0 answers
52 views

How do i upgrade the council through a runtime Upgrade?

I have written code for a storage migration but unfortunately the council members are not displaying after the runtime upgrade. Below is the code I wrote for the storage migration const COUNCIL_PREFIX:...
master chief's user avatar
2 votes
1 answer
58 views

revert a chain migration

We executed a chain migration that was not intended ( it was already executed one time and was executed again 2 times ) https://github.com/paritytech/substrate/blob/polkadot-v0.9.18/frame/system/src/...
Dubs's user avatar
  • 294
0 votes
1 answer
49 views

Is it possible to add council support and initial members during a runtime upgrade?

I have a running node without a council configured in genesis. I would like to add a council and initial council members using a runtime upgrade. Is this possible and how would i do it
master chief's user avatar
2 votes
1 answer
59 views

What's the best way to perfrom a parachain runtime upgrade through democracy?

Today, I attempted to submit a preimage, start an external proposal and initiate referenda. Check the preimage here: https://crab.subscan.io/referenda/4?tab=proposal_preimage. The outcome of my ...
AurevoirXavier's user avatar
2 votes
0 answers
39 views

Steps to handle renaming runtime api + upgrade

I'm considering a large refactor in our substrate codebase which would involve moving large chunks of code around. This includes a runtime api. In it's destined place, the runtime api's name(both its ...
Justin Frevert's user avatar
0 votes
3 answers
65 views

Version Upgrade issue

I am running substrate on polkadot-v0.9.25, and I want to upgrade it to polkadot-v0.9.36, so I took the normal approach that has been suggested in many questions, that is to do a runtime upgrade and ...
Shubham Gupta's user avatar
0 votes
2 answers
28 views

E1-runtimemigration label on substrate repo is missing?

There was the E1-runtimemigration label for PRs in substrate repo that needed migrations. It seems to be missing now: https://github.com/paritytech/substrate/pulls?q=is%3Apr%20label%3AE1-...
Mexke's user avatar
  • 55
1 vote
1 answer
556 views

`let...else` statements are unstable [closed]

trying to update to the latest polkadot-v0.9.37 when i cargo check i get: Checking sc-executor-wasmi v0.10.0-dev (https://github.com/paritytech/substrate?branch=polkadot-v0.9.37#946507ba) ...
Ramsey - Decentration's user avatar
0 votes
1 answer
49 views

After upgrading the chain version and elections not happening

I have a chain running on polkadot-v0.9.18 and I want to upgrade it to polkadot-v0.9.20, so I did a runtime upgrade using the latters wasm codeand changed the client. After this the elections are not ...
Amit Kumar Yadav's user avatar