-
Notifications
You must be signed in to change notification settings - Fork 0
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
[AJUN-495] Runtime Upgrade for Async Backing #64
Conversation
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.
Nice, except for one comment I think this looks good.
I reviewed that:
- The changes correspond to the guide https://wiki.polkadot.network/docs/maintain-guides-async-backing#phase-3---activate-async-backing
- Double checked that the service aligns with the parachain
polkadot-sdk\cumulus\polkadot-parachain\src\service.rs
- Checked that the runtime matches the
polkadot-sdk\templates\parachain\runtime\src
although the runtime is so minimal that not everything is covered.
runtime/bajun/src/lib.rs
Outdated
type MinimumPeriod = ConstU64<0>; | ||
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 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.
This change is wrong IMO, it should stay at 0 if I read this correctly: https://wiki.polkadot.network/docs/maintain-guides-async-backing#phase-3---activate-async-backing
(But maybe it was wrong that it was 0 before XD)
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.
True, you are right about that!
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.
Wonderful. Looks good to me now!
Description
Updates runtime to enabled 6s blocks through async-backing
Type of changes
build
: Changes that affect the build system or external dependencies (eg, Cargo, Docker)ci
: Changes to CI configurationdocs
: Changes to documentation onlyfeat
: Changes to add a new featurefix
: Changes to fix a bugrefactor
: Changes that do not alter functionalitystyle
: Changes to format the codetest
: Changes to add missing tests or correct existing testsChecklist
cargo fmt --all
cargo clippy --all-features --all-targets
cargo test --workspace --all-features --all-targets