Skip to content

Wrap EPM Snapshot, SnapshotMetadata and DesiredTargets to ensure invariants #413

Closed
@gpestana

Description

The Snapshot, SnapshotMetadata and DesiredTargets storage items in the EPM pallet must be kept in sync throughout the election lifetime and be killed in tandem. Currently, these storage items are mutated in different places in the pallet.

It makes sense to refactor EPM to hide those storage items behind a shared wrapper that is used to access/mutate and kill the inner items, so as to make sure the invariants hold true at every point in the election.

(related comment)

Metadata

Assignees

Labels

C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions