Welcome to OGeek Q&A 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...