Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

why can i not upgrade a chain runtime as per the Substrate tutorial?

I followed the instructions at https://substrate.dev/docs/en/tutorials/upgrade-a-chain/ to test out upgrading a chain runtime. When I submitted the setCode transaction I received the following error...

invalid transaction transaction would exhaust the block limits

I understand what the error means. But, I don't understand why the tutorial is failing. Has anyone else been able to get this tutorial working. Any help on this would be greatly appreciated.

question from:https://stackoverflow.com/questions/65928657/why-can-i-not-upgrade-a-chain-runtime-as-per-the-substrate-tutorial

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Did you try your upgrade through the UI? If you go through Developer > Sudo and select sudo - sudoUncheckedWeight and then system - setCode it should work.

Another route would go through Developer > Extrinsics, select your sudo account, then sudo, uncheckedWeight and system, setCode.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...