Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

beefy: add pruning for SetIdSession storage in pallet-beefy #13404

Closed
@acatangiu

Description

In pallet-beefy we keep a mapping of set id -> session index, this is necessary to validate equivocation proofs. The entries in this map are not being pruned.

We should bound the maximum number of entries in this mapping, for example GRANDPA pallet sets the limit to the bonding duration (in sessions).

Metadata

Assignees

Labels

I8-footprintAn enhancement to provide a smaller (system load, memory, network or disk) footprint.U2-some_time_soonIssue is worth doing soon.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions