Skip to content
Snippets Groups Projects
Unverified Commit 3029280f authored by Nikos Kontakis's avatar Nikos Kontakis Committed by GitHub
Browse files

Implement wrapping of EPM types (#1633)


This PR wraps the `Snapshot`, `SnapshotMetadata` and `DesiredTargets`
storage items in the [EPM
pallet](https://paritytech.github.io/substrate/master/pallet_election_provider_multi_phase/index.html)
in order to keep them in sync throughout the election lifetime and in
order to be killed together.

Prior to this PR, these storage items were mutated in different places
in the pallet;

In addition 2 helper `fns` are introduced for chekcing if all the
wrapped storage items exist or not;

Fixes #413 ;

---------

Co-authored-by: default avatarGonçalo Pestana <g6pestana@gmail.com>
Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: default avatarBastian Köcher <git@kchr.de>
parent c83ccda4
Branches
No related merge requests found
Pipeline #437035 failed with stages
in 1 hour, 20 minutes, and 58 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment