NetworkBridge: validator (authorities) discovery api (#1699)
* stupid, but it compiles * redo * cleanup * add ValidatorDiscovery to msgs * sketch network bridge code * ConnectToAuthorities instead of validators * more stuff * cleanup * more stuff * complete ConnectToAuthoritiesState * Update node/network/bridge/src/lib.rs Co-authored-by:Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Collator protocol subsystem (#1659) * WIP * The initial implementation of the collator side. * Improve comments * Multiple collation requests * Add more tests and comments to validator side * Add comments, remove dead code * Apply suggestions from code review Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Fix build after suggested changes * Also connect to the next validator group * Remove a Future impl and move TimeoutExt to util * Minor nits * Fix build * Change FetchCollations back to FetchCollation * Try this * Final fixes * Fix build Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * handle multiple in-flight connection requests * handle cancelled requests * Update node/core/runtime-api/src/lib.rs Co-authored-by:
Bernhard Schuster <bernhard@ahoi.io> * redo it again * more stuff * redo it again * update comments * workaround Future is not Send * fix trailing spaces * clarify comments * bridge: fix compilation in tests * update more comments * small fixes * port collator protocol to new validator discovery api * collator tests compile * collator tests pass * do not revoke a request when the stream receiver is closed * make revoking opt-in * fix is_fulfilled * handle request revokation in collator * tests * wait for validator connections asyncronously * fix compilation * relabel my todos * apply Fedor's patch * resolve reconnection TODO * resolve revoking TODO * resolve channel capacity TODO * resolve peer cloning TODO * resolve peer disconnected TODO * resolve PeerSet TODO * wip tests * more tests * resolve Arc TODO * rename pending to non_revoked * one more test * extract utility function into util crate * fix compilation in tests * Apply suggestions from code review Co-authored-by:
Fedor Sakharov <fedor.sakharov@gmail.com> * revert pin_project removal * fix while let loop * Revert "revert pin_project removal" This reverts commit ae7f529d8de982ef66c3007dd1ff74c6ddce80d2. * fix compilation * Update node/subsystem/src/messages.rs * docs on pub items * guide updates * remove a TODO * small guide update * fix a typo * link to the issue * validator discovery: on_request docs Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by:
Fedor Sakharov <fedor.sakharov@gmail.com> Co-authored-by:
Bernhard Schuster <bernhard@ahoi.io>
parent
96f6b5ae
Showing
- polkadot/Cargo.lock 4 additions, 0 deletionspolkadot/Cargo.lock
- polkadot/node/core/runtime-api/src/lib.rs 6 additions, 1 deletionpolkadot/node/core/runtime-api/src/lib.rs
- polkadot/node/network/bridge/Cargo.toml 2 additions, 0 deletionspolkadot/node/network/bridge/Cargo.toml
- polkadot/node/network/bridge/src/lib.rs 102 additions, 30 deletionspolkadot/node/network/bridge/src/lib.rs
- polkadot/node/network/bridge/src/validator_discovery.rs 594 additions, 0 deletionspolkadot/node/network/bridge/src/validator_discovery.rs
- polkadot/node/network/collator-protocol/src/collator_side.rs 124 additions, 77 deletionspolkadot/node/network/collator-protocol/src/collator_side.rs
- polkadot/node/network/collator-protocol/src/lib.rs 10 additions, 0 deletionspolkadot/node/network/collator-protocol/src/lib.rs
- polkadot/node/subsystem-util/src/lib.rs 2 additions, 0 deletionspolkadot/node/subsystem-util/src/lib.rs
- polkadot/node/subsystem-util/src/validator_discovery.rs 157 additions, 0 deletionspolkadot/node/subsystem-util/src/validator_discovery.rs
- polkadot/node/subsystem/src/messages.rs 27 additions, 8 deletionspolkadot/node/subsystem/src/messages.rs
- polkadot/primitives/Cargo.toml 1 addition, 0 deletionspolkadot/primitives/Cargo.toml
- polkadot/primitives/src/v1.rs 8 additions, 0 deletionspolkadot/primitives/src/v1.rs
- polkadot/roadmap/implementers-guide/src/node/utility/network-bridge.md 4 additions, 2 deletions...map/implementers-guide/src/node/utility/network-bridge.md
- polkadot/roadmap/implementers-guide/src/types/overseer-protocol.md 18 additions, 4 deletions...roadmap/implementers-guide/src/types/overseer-protocol.md
- polkadot/runtime/kusama/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/parachains/Cargo.toml 1 addition, 0 deletionspolkadot/runtime/parachains/Cargo.toml
- polkadot/runtime/parachains/src/runtime_api_impl/v1.rs 25 additions, 1 deletionpolkadot/runtime/parachains/src/runtime_api_impl/v1.rs
- polkadot/runtime/polkadot/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo-v1/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/rococo-v1/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/westend/src/lib.rs
Please register or sign in to comment