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

impl availability distribution #1460

Merged
merged 81 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from 73 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
88e61b2
start of availability impl
drahnr Jul 23, 2020
33eee3b
tmp
drahnr Jul 27, 2020
43ffa87
outline
drahnr Jul 28, 2020
710c75f
chore
drahnr Jul 28, 2020
06e1550
more
drahnr Jul 28, 2020
a798e07
chore
drahnr Jul 28, 2020
509de98
rename GAIN -> BENEFIT
drahnr Jul 28, 2020
ec96cb5
more steps
drahnr Jul 28, 2020
104c7c0
obtain own validator index
drahnr Jul 28, 2020
ba55e96
step by step
drahnr Jul 29, 2020
3e911d0
more steps
drahnr Jul 29, 2020
311443a
even more steps
drahnr Jul 30, 2020
26cec92
unify overseer / runtime api query fns
drahnr Jul 30, 2020
bbe6160
rustc pair programming
drahnr Jul 30, 2020
7748693
remove redundancy, rustc pair programming
drahnr Jul 30, 2020
11fb5d7
compiling, missing tests
drahnr Jul 31, 2020
b759112
initial sequential test
drahnr Jul 31, 2020
b0d83e5
test improvements
drahnr Jul 31, 2020
2a09069
test send overseer active relay parents message
drahnr Jul 31, 2020
3df6102
handle k ancestors, track them properly
drahnr Aug 3, 2020
376755f
initial test improvments
drahnr Aug 3, 2020
c3da275
unblock test
drahnr Aug 4, 2020
2dbba14
refactor: move to candidate centric impl
drahnr Aug 4, 2020
44d822c
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 4, 2020
e41c5ae
merge fallout + fmt
drahnr Aug 4, 2020
e26a614
replace stubs with code
drahnr Aug 4, 2020
d21fddd
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 4, 2020
cf55d97
fix former stub fall from merge
drahnr Aug 4, 2020
f985006
add missing test message to test
drahnr Aug 4, 2020
2803193
better rep change description
drahnr Aug 4, 2020
336bb58
squash warnings, complete test sequence, pending invalid test data
drahnr Aug 4, 2020
0e72835
use QueryAvailableData instead of mocked QueryPoV
drahnr Aug 5, 2020
b6d9479
review commits and more test state prep
drahnr Aug 5, 2020
cb9d10f
remove unused enum variants
drahnr Aug 5, 2020
f23a9c1
improve tests, deterministic now
drahnr Aug 5, 2020
8eabc1e
cache the receipts hash too
drahnr Aug 5, 2020
76fb5ee
add same session check to k ancestors
drahnr Aug 5, 2020
ea15091
rename H256 -> Hash, adjust test for new sequence
drahnr Aug 5, 2020
524e89d
no .await on single lines
drahnr Aug 5, 2020
163ba6b
store chunk that was gossiped too av store too
drahnr Aug 5, 2020
5f336f2
compilation
drahnr Aug 5, 2020
c5048db
slightly refactor query of live candidates
drahnr Aug 5, 2020
0d97f7a
query order changed, relay_parent is last
drahnr Aug 5, 2020
22fdba0
do not send messages if peers count is zero
drahnr Aug 5, 2020
9a6df69
fix a issue, where only relay parents were properly forwarded
drahnr Aug 5, 2020
72eab58
cargo-spellcheck :)
drahnr Aug 5, 2020
68eac2d
who vs which
drahnr Aug 5, 2020
0dcf58d
remove smol dev dependency
drahnr Aug 5, 2020
77a708e
adjust awkward sentence in guide
drahnr Aug 6, 2020
6ec4226
fix warnings
drahnr Aug 6, 2020
651f675
make test pass up to merkle proof
drahnr Aug 6, 2020
bc3a107
fix test runs
drahnr Aug 6, 2020
09451ce
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 6, 2020
046a30f
address review comments
drahnr Aug 6, 2020
a3588e3
address remaining review points
drahnr Aug 6, 2020
86d4305
adjust guide
drahnr Aug 6, 2020
c4ffc85
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 6, 2020
fcbb336
add missing warn! targets
drahnr Aug 6, 2020
77a3d0a
fix: adjust delta calc of view
drahnr Aug 7, 2020
3089a8e
fix bitfield dist: delta calc of view
drahnr Aug 7, 2020
7c44427
review comments
drahnr Aug 7, 2020
9784b41
remove commitments() getter
drahnr Aug 7, 2020
80c57ed
X
drahnr Aug 7, 2020
8b35043
improve obtaining ancestors, adds k ancestor same session test
drahnr Aug 7, 2020
7e8686d
chore Cargo.lock
drahnr Aug 7, 2020
57bd7ca
avoid doing erasure encoding ourselves
drahnr Aug 7, 2020
4f72fc1
avoid explicit Into::into for error types where possible
drahnr Aug 7, 2020
adc8346
add unit test for test helpers
drahnr Aug 7, 2020
48d5ea0
cleanup warnings
drahnr Aug 7, 2020
ac21634
make test names less confusing, add more asserts, make sure the order…
drahnr Aug 7, 2020
2944012
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 10, 2020
911499f
chore: split tests from source
drahnr Aug 10, 2020
d9502fc
chore move fast test where it belongs
drahnr Aug 10, 2020
308a920
docs: rephrase comment
drahnr Aug 10, 2020
9d31648
simplify k ancestors in same session logic
drahnr Aug 10, 2020
f2a19ec
chore warnings
drahnr Aug 10, 2020
67d2bc9
adjust test to change k ancestors in same session behaviour change
drahnr Aug 10, 2020
aba679b
add subsystem suffix
drahnr Aug 10, 2020
6fd1287
remove ping-pong test
drahnr Aug 10, 2020
00ad19e
remove unused val
drahnr Aug 10, 2020
639baf5
Merge remote-tracking branch 'origin/master' into bernhard-availabili…
drahnr Aug 10, 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
434 changes: 276 additions & 158 deletions Cargo.lock

Large diffs are not rendered by default.

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

[dependencies]
futures = "0.3.5"
log = "0.4.11"
streamunordered = "0.5.1"
codec = { package="parity-scale-codec", version = "1.3.4", features = ["std"] }
node-primitives = { package = "polkadot-node-primitives", path = "../../primitives" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-erasure-coding = { path = "../../../erasure-coding" }
polkadot-subsystem = { package = "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" }
sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
derive_more = "0.99.9"
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] }

[dev-dependencies]
polkadot-subsystem-testhelpers = { package = "polkadot-node-subsystem-test-helpers", path = "../../subsystem-test-helpers" }
bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] }
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
parking_lot = "0.11.0"
futures-timer = "3.0.2"
smol-timeout = "0.1.0"
env_logger = "0.7.1"
assert_matches = "1.3.0"
smallvec = "1"
Loading