Skip to content
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

Merged
merged 9 commits into from
Nov 15, 2022

Conversation

gregdhill
Copy link
Member

@gregdhill gregdhill commented Nov 14, 2022

Succeeds #765
Succeeds #761

Changes

paritytech/substrate@polkadot-v0.9.30...polkadot-v0.9.31

Notes

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 to 1000 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

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>
Copy link
Member

@sander2 sander2 left a 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>
sander2
sander2 previously approved these changes Nov 14, 2022
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)
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gregdhill gregdhill merged commit fe4b6dc into interlay:master Nov 15, 2022
@gregdhill gregdhill deleted the chore/polkadot-v0.9.31 branch November 15, 2022 09:48
@sander2 sander2 added this to the Release 1.20 milestone Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants