Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit ab606e1

Browse files
author
Andronik Ordian
authored
impl approval distribution (#2160)
* initial impl approval distribution * initial tests and fixes * batching seems difficult: different peers have different needs * bridge: fix test after merge * some guide updates * only send assignments to peers who know about the block * fix a test, add approvals test * simplify * do not send assignment to peers for finalized blocks * guide: protocol input and output * one more test * more comments, logs, initial metrics * fix a typo * one more thing: early return when reimporting a thing locally
1 parent a03b329 commit ab606e1

File tree

18 files changed

+2119
-80
lines changed

18 files changed

+2119
-80
lines changed

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ members = [
5252
"node/core/proposer",
5353
"node/core/provisioner",
5454
"node/core/runtime-api",
55+
"node/network/approval-distribution",
5556
"node/network/bridge",
5657
"node/network/pov-distribution",
5758
"node/network/protocol",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "polkadot-approval-distribution"
3+
version = "0.1.0"
4+
authors = ["Parity Technologies <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
polkadot-node-primitives = { path = "../../primitives" }
9+
polkadot-node-network-protocol = { path = "../protocol" }
10+
polkadot-node-subsystem = { path = "../../subsystem" }
11+
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
12+
polkadot-primitives = { path = "../../../primitives" }
13+
14+
futures = "0.3.8"
15+
tracing = "0.1.22"
16+
tracing-futures = "0.2.4"
17+
18+
[dev-dependencies]
19+
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] }
20+
21+
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
22+
polkadot-node-subsystem-test-helpers = { path = "../../subsystem-test-helpers" }
23+
24+
assert_matches = "1.4.0"
25+
schnorrkel = { version = "0.9.1", default-features = false }
26+
rand_core = "0.5.1" # should match schnorrkel
27+
env_logger = "0.8.2"
28+
log = "0.4.13"

0 commit comments

Comments
 (0)