election-provider-multi-block: reduce overclaimed proof_size during Signed phase#11156
Conversation
…igned phase on_initialize claimed on_initialize_into_signed weight (> ~3M proof_size) every block during the Signed phase, but the heavy work (loading voter snapshots) only happens once when transitioning from Snapshot into Signed. Use discriminant comparison to distinguish phase entry from same-phase ticks, falling back to on_initialize_nothing for the latter.
|
/cmd prdoc --audience runtime_dev --bump |
|
This pull request is amending an existing release. Please proceed with extreme caution,
Emergency Bypass
If you really need to bypass this check: add |
|
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
|
This is meant to be a tentative workaround for #11034 for Release 2.1.0 based on 2512 where due to lack of time, we can't afford to backport #9925 . The expected benefit is that only during Snapshot phase (33 blocks) and in the transition Snapshot(0 ) -> Signed(N) we would see a spike in PoV but after that, Signed(_) is back to normal since no heavy work is performed |
- Bump election provider multiblock to include [SDK PR#11156](paritytech/polkadot-sdk#11156) : reduce overclaimed proof_size during Signed phase - Bump staking pallets to include [SDK PR#11168](paritytech/polkadot-sdk#11168): add a configurable MinSetKeysBond threshold that rejects set_keys when active bond is insufficient.
…igned phase (paritytech#11156) on_initialize claimed on_initialize_into_signed weight (> ~3M proof_size) every block during the Signed phase, but the heavy work (loading voter snapshots) only happens once when transitioning from Snapshot into Signed. Use discriminant comparison to distinguish phase entry from same-phase ticks, falling back to on_initialize_nothing for the latter. A proper fix would be backporting paritytech#9925 into stable2512 - but this would be a bigger change not compatible with the tight timeline of 2.1.0 release on Polkadot/Kusama. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
on_initialize claimed on_initialize_into_signed weight (> ~3M proof_size) every block during the Signed phase, but the heavy work (loading voter snapshots) only happens once when transitioning from Snapshot into Signed.
Use discriminant comparison to distinguish phase entry from same-phase ticks, falling back to on_initialize_nothing for the latter.
A proper fix would be backporting #9925 into stable2512 - but this would be a bigger change not compatible with the tight timeline of 2.1.0 release on Polkadot/Kusama.