Approval Voting improvements (#2781)
* extract database from av-store itself * generalize approval-voting over database type * modes (without handling) and pruning old wakeups * rework approval importing * add our_approval_sig to ApprovalEntry * import assignment * guide updates for check-full-approval changes * some aux functions * send messages when becoming active. * guide: network bridge sends view updates only when done syncing * network bridge: send view updates only when done syncing * tests for new network-bridge behavior * add a test for updating approval entry with sig * fix some warnings * test load-all-blocks * instantiate new parachains DB * fix network-bridge empty view updates * tweak * fix wasm build, i think * Update node/core/approval-voting/src/lib.rs Co-authored-by:Andronik Ordian <write@reusable.software> * add some versioning to parachains_db * warnings * fix merge changes * remove versioning again Co-authored-by:
Andronik Ordian <write@reusable.software>
parent
01badafb
Showing
- polkadot/Cargo.lock 5 additions, 3 deletionspolkadot/Cargo.lock
- polkadot/node/core/approval-voting/Cargo.toml 1 addition, 1 deletionpolkadot/node/core/approval-voting/Cargo.toml
- polkadot/node/core/approval-voting/src/approval_checking.rs 9 additions, 0 deletionspolkadot/node/core/approval-voting/src/approval_checking.rs
- polkadot/node/core/approval-voting/src/approval_db/v1/mod.rs 79 additions, 70 deletionspolkadot/node/core/approval-voting/src/approval_db/v1/mod.rs
- polkadot/node/core/approval-voting/src/approval_db/v1/tests.rs 133 additions, 30 deletions...dot/node/core/approval-voting/src/approval_db/v1/tests.rs
- polkadot/node/core/approval-voting/src/import.rs 26 additions, 4 deletionspolkadot/node/core/approval-voting/src/import.rs
- polkadot/node/core/approval-voting/src/lib.rs 426 additions, 162 deletionspolkadot/node/core/approval-voting/src/lib.rs
- polkadot/node/core/approval-voting/src/persisted_entries.rs 38 additions, 18 deletionspolkadot/node/core/approval-voting/src/persisted_entries.rs
- polkadot/node/core/approval-voting/src/tests.rs 269 additions, 202 deletionspolkadot/node/core/approval-voting/src/tests.rs
- polkadot/node/core/av-store/Cargo.toml 0 additions, 3 deletionspolkadot/node/core/av-store/Cargo.toml
- polkadot/node/core/av-store/src/lib.rs 123 additions, 112 deletionspolkadot/node/core/av-store/src/lib.rs
- polkadot/node/core/av-store/src/tests.rs 17 additions, 4 deletionspolkadot/node/core/av-store/src/tests.rs
- polkadot/node/network/approval-distribution/src/lib.rs 4 additions, 1 deletionpolkadot/node/network/approval-distribution/src/lib.rs
- polkadot/node/network/bridge/Cargo.toml 2 additions, 0 deletionspolkadot/node/network/bridge/Cargo.toml
- polkadot/node/network/bridge/src/lib.rs 281 additions, 32 deletionspolkadot/node/network/bridge/src/lib.rs
- polkadot/node/service/Cargo.toml 5 additions, 1 deletionpolkadot/node/service/Cargo.toml
- polkadot/node/service/src/lib.rs 30 additions, 14 deletionspolkadot/node/service/src/lib.rs
- polkadot/node/service/src/parachains_db.rs 103 additions, 0 deletionspolkadot/node/service/src/parachains_db.rs
- polkadot/roadmap/implementers-guide/src/node/approval/approval-voting.md 8 additions, 12 deletions...p/implementers-guide/src/node/approval/approval-voting.md
- polkadot/roadmap/implementers-guide/src/node/utility/network-bridge.md 3 additions, 1 deletion...map/implementers-guide/src/node/utility/network-bridge.md
Please register or sign in to comment