substrate icon indicating copy to clipboard operation
substrate copied to clipboard

grandpa: cleanup stale entries in set id session mapping

Open andresilva opened this issue 3 years ago • 1 comments

In the GRANDPA pallet we keep a mapping of set id -> session index, this is necessary to validate equivocation proofs. The entries in this map were never being pruned. This PR bounds the maximum number of entries in this mapping which will usually be set to the bonding duration (in sessions).

polkadot companion: https://github.com/paritytech/polkadot/pull/6626

andresilva avatar Jan 24 '23 21:01 andresilva

Regarding the migration here are the current set ids of all networks: Kusama: 6297 Polkadot: 1282 Westend: 6074 Rococo: 6485

So the migration should run fine.

andresilva avatar Jan 24 '23 21:01 andresilva

bot merge

andresilva avatar Jan 30 '23 15:01 andresilva

Error: Github API says https://github.com/paritytech/polkadot/pull/6626 is not mergeable

bot merge

andresilva avatar Jan 30 '23 15:01 andresilva