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

implement bitfield distribution subsystem #1368

Merged
merged 47 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
31cb1ad
feat bitfield distribution
drahnr Jul 7, 2020
ddb6228
feat bitfield distribution part 2
drahnr Jul 7, 2020
6ac2c62
pair programming with rustc & cargo
drahnr Jul 7, 2020
4b100df
lets go
drahnr Jul 7, 2020
a3bd8c0
move bitfield-distribution to the node/network folder
drahnr Jul 8, 2020
7909d47
shape shifting
drahnr Jul 8, 2020
e3c8248
lunchtime
drahnr Jul 8, 2020
86f4fdb
ignore the two fn recursion for now
drahnr Jul 8, 2020
3cf0878
step by step
drahnr Jul 9, 2020
6a6d7bc
triplesteps
drahnr Jul 9, 2020
1aa1842
bandaid commit
drahnr Jul 10, 2020
ad0555b
unordered futures magic
drahnr Jul 10, 2020
7966769
chore
drahnr Jul 10, 2020
e8c901a
reword markdown
drahnr Jul 10, 2020
e33dafe
clarify
drahnr Jul 10, 2020
6594dee
lacks abortable processing impl details
drahnr Jul 14, 2020
4c6f9b4
slimify
drahnr Jul 14, 2020
af2849b
fix: warnings and avoid ctx.clone() improve comments
drahnr Jul 15, 2020
977102b
review comments
drahnr Jul 20, 2020
92431f3
fix details
drahnr Jul 20, 2020
23c050e
make sure outgoing messages are tracked
drahnr Jul 20, 2020
a431601
fix name
drahnr Jul 20, 2020
a5077ee
Merge remote-tracking branch 'origin/master' into bernhard-bitfield-d…
drahnr Jul 20, 2020
be2533e
fix subsystem
drahnr Jul 20, 2020
64b6ec1
partial test impl
drahnr Jul 20, 2020
52d9800
relax context bounds
drahnr Jul 21, 2020
df8fe1d
test
drahnr Jul 21, 2020
38661f7
X
drahnr Jul 21, 2020
f1f7cab
X
drahnr Jul 21, 2020
f94b8c5
initial test
drahnr Jul 21, 2020
7a4bd5e
fix relay_message not tracked when origin is self
drahnr Jul 21, 2020
b299ad3
fix/guide: grammar
drahnr Jul 21, 2020
09766c1
work around missing Eq+PartialEq
drahnr Jul 21, 2020
df7a6f0
fix: add missing message to provisioner
drahnr Jul 21, 2020
2398681
unify per_job to job_data
drahnr Jul 21, 2020
8ed8aba
fix/review: part one
drahnr Jul 22, 2020
65e8edb
fix/review: more grumbles
drahnr Jul 22, 2020
087784a
fix/review: track incoming messages per peer
drahnr Jul 22, 2020
d91bcbd
fix/review: extract fn, avoid nested matches
drahnr Jul 22, 2020
c957bf9
fix/review: more tests, simplify test
drahnr Jul 22, 2020
36a6672
fix/review: extend tests to cover more cases
drahnr Jul 22, 2020
5b7c963
chore/rename: Tracker -> ProtocolState
drahnr Jul 22, 2020
794c6c3
chore check and comment rewording
drahnr Jul 22, 2020
f3a718e
feat test: invalid peer message
drahnr Jul 22, 2020
e33e943
remove ignored test cases and unused macros
drahnr Jul 22, 2020
b8d3941
Merge remote-tracking branch 'origin/master' into bernhard-bitfield-d…
drahnr Jul 23, 2020
99f574e
fix master merge fallout + warnings
drahnr Jul 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 133 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ members = [
"node/network/bridge",
"node/network/pov-distribution",
"node/network/statement-distribution",
"node/network/bitfield-distribution",
"node/overseer",
"node/primitives",
"node/service",
Expand Down
28 changes: 28 additions & 0 deletions node/network/bitfield-distribution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "polkadot-availability-bitfield-distribution"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

[dependencies]
futures = "0.3.5"
futures-timer = "3.0.2"
log = "0.4.8"
streamunordered = "0.5.1"
codec = { package="parity-scale-codec", version = "1.3.0" }
node-primitives = { package = "polkadot-node-primitives", path = "../../primitives" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-node-subsystem = { path = "../../subsystem" }
polkadot-network-bridge = { path = "../../network/bridge" }
polkadot-network = { path = "../../../network" }
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }

[dev-dependencies]
bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
subsystem-test = { package = "polkadot-subsystem-test-helpers", path = "../../test-helpers/subsystem" }
parking_lot = "0.10.0"
maplit = "1.0.2"
smol = "0.2"
smol-timeout = "0.1"
env_logger = "0.7"
Loading