ICMP message-routing gossip (#304)
* core logic for ICMP gossip * refactor gossip to make more extension friendly * move files aroun * extract attestation-gossip logic to its own module * message validation and broadcast logic * fix upstream crates' compilation * add a test * another test for overlapping * Some grammar and phrasing tweaks Co-Authored-By: Luke Schoen <ltfschoen@users.noreply.github.com> * add since parameter to ingress runtime API * broadcast out known unrouted message queues * fix compilation of service and collator * remove useless index_mapping * some tests for icmp propagation * fix decoding bug and test icmp queue validation * simplify engine-id definition Co-Authored-By: Sergei Pepyakin <sergei@parity.io> * address some grumbles * some cleanup of old circulation code * give network a handle to extrinsic store on startup * an honest collator ensures data available as well * address some grumbles * add docs; rename the attestation session to "leaf work" * module docs * move gossip back to gossip.rs * clean up and document attestation-gossip a bit * some more docs on the availability store * store all outgoing message queues in the availability store * filter `Extrinsic` out of validation crate * expunge Extrinsic from network * expunge Extrinsic from erasure-coding * expunge Extrinsic from collator * expunge from adder-collator * rename ExtrinsicStore to AvailabilityStore everywhere * annotate and clean up message-routing tests
Showing
- availability-store/src/lib.rs 74 additions, 28 deletionsavailability-store/src/lib.rs
- collator/src/lib.rs 54 additions, 43 deletionscollator/src/lib.rs
- erasure-coding/src/lib.rs 6 additions, 6 deletionserasure-coding/src/lib.rs
- network/Cargo.toml 1 addition, 1 deletionnetwork/Cargo.toml
- network/src/gossip.rs 712 additions, 286 deletionsnetwork/src/gossip.rs
- network/src/gossip/attestation.rs 264 additions, 0 deletionsnetwork/src/gossip/attestation.rs
- network/src/gossip/message_routing.rs 339 additions, 0 deletionsnetwork/src/gossip/message_routing.rs
- network/src/lib.rs 165 additions, 32 deletionsnetwork/src/lib.rs
- network/src/router.rs 9 additions, 8 deletionsnetwork/src/router.rs
- network/src/tests/mod.rs 35 additions, 13 deletionsnetwork/src/tests/mod.rs
- network/src/tests/validation.rs 9 additions, 10 deletionsnetwork/src/tests/validation.rs
- network/src/validation.rs 93 additions, 196 deletionsnetwork/src/validation.rs
- primitives/src/parachain.rs 55 additions, 8 deletionsprimitives/src/parachain.rs
- runtime/src/lib.rs 4 additions, 2 deletionsruntime/src/lib.rs
- runtime/src/parachains.rs 21 additions, 11 deletionsruntime/src/parachains.rs
- service/src/lib.rs 32 additions, 23 deletionsservice/src/lib.rs
- test-parachains/adder/collator/src/main.rs 4 additions, 4 deletionstest-parachains/adder/collator/src/main.rs
- validation/Cargo.toml 1 addition, 1 deletionvalidation/Cargo.toml
- validation/src/attestation_service.rs 6 additions, 7 deletionsvalidation/src/attestation_service.rs
- validation/src/collation.rs 26 additions, 26 deletionsvalidation/src/collation.rs
Please register or sign in to comment