1

I am trying to do a runtime upgrade through democracy referenda and the steps I performed are as follows:

  1. create pre-image.
  2. submit pre-image through democracy .
  3. endorse
  4. voting .

After this I am getting event of schedular overweight. I have done runtime upgrade through democracy before also but this is the first time I got this error can someone help me with this.

enter image description here

2

1 Answer 1

2

In the relay chain case you can overwrite the weight of the runtime upgrade by wrapping the system::set_code extrinsic into a utility::with_weight and overwrite the weight to something small.
We use this approach in Polkadot/Kusama to ensure that the upgrades do not hang with such an error.

Your Answer

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

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