-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to polkadot-v0.9.31 #768
Conversation
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
53155df
to
8e85415
Compare
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paritytech/substrate#11649 state this:
Runtime storage migrations must be run for:
- Preimage pallet
- Scheduler pallet
- Democracy pallet
I guess we don't need the democracy one since we use a fork, but don't we have to run the preimage one?
Also, we need to remember to run try-runtime on mainnets for these
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@@ -129,7 +129,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); | |||
/// by Operational extrinsics. | |||
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); | |||
/// We allow for 2 seconds of compute with a 12 second average block time. | |||
const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND.saturating_mul(2 as u64); | |||
pub const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND | |||
.saturating_div(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only allow 0.5 sec of block production?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea that comment is wrong, see the configuration for statemine / statemint here: https://github.com/paritytech/cumulus/blob/3095325ac440cd3f30efb4acc0e6d7b84a1609ff/parachains/common/src/lib.rs#L94
Succeeds #765
Succeeds #761
Changes
paritytech/substrate@polkadot-v0.9.30...polkadot-v0.9.31
Call
paritytech/substrate#11649Notes
Upstream democracy removed
enact_proposal
, we should do the same but that requires some additional changes to the preimage setup. I've opted to hard-code the weight of this call to1000
instead of the max to limit the number of breaking changes and allow the scheduler to actually service proposal tasks.Runs all migrations as listed here: paritytech/polkadot#5729