Skip to content
Unverified Commit 64ba8848 authored by Tsvetomir Dimitrov's avatar Tsvetomir Dimitrov Committed by GitHub
Browse files

Fix storage migration of `OffendingValidators` (#4083)

Not all validators in `OffendingValidators` are disabled. This should be
taken in account when migrating the storage item to `DisabledValidators`
(where everyone is disabled).

Also the[ disabling strategy
implementation](https://github.com/paritytech/polkadot-sdk/blob/b71e0dbd

/substrate/frame/staking/src/lib.rs#L1230)
used by the runtime expects a certain number of maximum disabled
validators. The storage migration should guarantee that this limit is
respected.

---------

Co-authored-by: default avatarMaciej <[email protected]>
parent cb11fb99
Pipeline #465165 failed with stages
in 2 hours, 23 minutes, and 7 seconds