Skip to content
Unverified Commit a4c418a5 authored by asynchronous rob's avatar asynchronous rob Committed by GitHub
Browse files

Approval Voting Database (#2162)



* skeleton

* skeleton aux-schema module

* start approval types

* start aux schema with aux store

* doc

* finish basic types

* start approval types

* doc

* finish basic types

* write out schema types

* add debug and codec impls to approval types

* add debug and codec impls to approval types

also add some key computation

* add debug and codec impls to approval types

* getters for block and candidate entries

* grumbles

* remove unused AssignmentId

* load_decode utility

* implement DB clearing

* function for adding new block entry to aux store

* start `canonicalize` implementation

* more skeleton

* finish implementing canonicalize

* tag TODO

* implement a test AuxStore

* add allow(unused)

* basic loading and deleting test

* block_entry test function

* add a test for `add_block_entry`

* ensure range is exclusive at end

* test clear()

* test that add_block sets children

* add a test for canonicalize

* Update node/core/approval-voting/src/aux_schema/mod.rs

Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>

* Update node/core/approval-voting/src/aux_schema/tests.rs

Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>

* Update node/core/approval-voting/src/aux_schema/mod.rs

Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>

Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
parent f97ef110
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