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>
This commit is contained in:
Robert Habermeier
2021-04-01 19:33:52 +02:00
committed by GitHub
parent 01badafba6
commit 57b56770e0
20 changed files with 1593 additions and 701 deletions
+5 -3
View File
@@ -5650,6 +5650,7 @@ dependencies = [
"assert_matches",
"async-trait",
"futures 0.3.13",
"futures-timer 3.0.2",
"parity-scale-codec",
"parking_lot 0.11.1",
"polkadot-node-network-protocol",
@@ -5659,6 +5660,7 @@ dependencies = [
"polkadot-primitives",
"sc-authority-discovery",
"sc-network",
"sp-consensus",
"sp-core",
"sp-keyring",
"strum",
@@ -5692,7 +5694,6 @@ dependencies = [
"futures-timer 3.0.2",
"kvdb",
"kvdb-memorydb",
"kvdb-rocksdb",
"maplit",
"merlin",
"parity-scale-codec",
@@ -5710,6 +5711,7 @@ dependencies = [
"schnorrkel",
"sp-application-crypto",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-consensus-slots",
"sp-core",
@@ -5730,7 +5732,6 @@ dependencies = [
"futures-timer 3.0.2",
"kvdb",
"kvdb-memorydb",
"kvdb-rocksdb",
"log",
"parity-scale-codec",
"parking_lot 0.11.1",
@@ -5741,7 +5742,6 @@ dependencies = [
"polkadot-node-subsystem-util",
"polkadot-overseer",
"polkadot-primitives",
"sc-service",
"sp-core",
"sp-keyring",
"thiserror",
@@ -6345,6 +6345,8 @@ dependencies = [
"futures 0.3.13",
"hex-literal",
"kusama-runtime",
"kvdb",
"kvdb-rocksdb",
"pallet-babe",
"pallet-im-online",
"pallet-mmr-primitives",