2

I want to do a runtime upgrade but I got the same error as here

solution is :- If there are changes not only to the runtime but also to the node, then this issue is normally caused by upgrading the runtime before upgrading the client.

Try upgrading the client, then the runtime.

but i don't know how to upgrade the client? How can i upgrade the client?

enter image description here

1 Answer 1

4

From the link you shared, you want to upgrade your node to a newer substrate version. If the newer substrate version only requires changes in the runtime, you can do a runtime upgrade "on-chain" (it is not required to shut down the node). However, if the newer substrate version requires changes on the client side , you need to do a client upgrade.

You can upgrade the client by stopping the node, compile the new code (cargo build --release) and run the new binary (./target/...).

And to give an example for the error. When there is a new host function in the client which did not exist yet in an older client version, and the upgraded runtime uses this new host function. You need to upgrade the client otherwise you'll get such an error.

7
  • How can i upgrade my client? Nov 30, 2022 at 9:58
  • @WakarSerajKhan see updated answer. Please say if something is still unclear to you Nov 30, 2022 at 10:15
  • I am using substrate version 0.9.17 which is build on substrate 1.63.0 and using another old substrate version which is build on 1.56.1, so i am upgrading my runtime with my new substrate version in polkadot explorer by using my latest WASM,and then i got that error on my explorer Nov 30, 2022 at 12:36
  • Can you be a bit more precise in what you are trying to do? Nov 30, 2022 at 12:56
  • As my question says I am want to upgrade my chain to a latest version of substrate which has also been answered in here, but was not able to it successfully and it also suggests that i need to upgrade my client but i was unable to find any documentation regarding that neither any relevant question here. Nov 30, 2022 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.