-
Notifications
You must be signed in to change notification settings - Fork 721
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
Parachains: Use relay chain slot for velocity measurement #6825
base: master
Are you sure you want to change the base?
Conversation
bot fmt |
@skunert https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7892036 was started for your command Comment |
@skunert Command |
bot fmt |
@skunert https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7898854 was started for your command Comment |
@skunert Command |
All GitHub workflows were cancelled due to failure one of the required jobs. |
closes #3967
Changes
We now use relay chain slots to measure velocity on chain. Previously we were storing the current parachain slot. Then in
on_state_proof
of theConsensusHook
we were checking how many blocks were athored in the current parachain slot. This works well when the parachain slot time and relay chain slot time is the same. With elastic scaling, we can have parachain slot times lower than that of the relay chain. In these cases we want to measure velocity in relation to the relay chain. This PR adjusts that.Migration
This PR includes a migration. Storage item
SlotInfo
of palletaura-ext
is renamed toRelaySlotInfo
to better reflect its new content. A migration has been added that just kills the old storage item.RelaySlotInfo
will beNone
initially but its value will be adjusted after one new relay chain slot arrives.