Implement Network Bridge (#1280)
* network bridge skeleton * move some primitives around and add debug impls * protocol registration glue & abstract network interface * add send_msgs to subsystemctx * select logic * transform different events into actions and handle * implement remaining network bridge state machine * start test skeleton * make network methods asynchronous * extract subsystem out to subsystem crate * port over overseer to subsystem context trait * fix minimal example * fix overseer doc test * update network-bridge crate * write a subsystem test-helpers crate * write a network test helper for network-bridge * set up (broken) view test * Revamp network to be more async-friendly and not require Sync * fix spacing * fix test compilation * insert side-channel for actions * Add some more message types to AllMessages * introduce a test harness * add some tests * ensure service compiles and passes tests * fix typo * fix service-new compilation * Subsystem test helpers send messages synchronously * remove smelly action inspector * remove superfluous let binding * fix warnings * Update node/network/bridge/src/lib.rs Co-authored-by:Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * fix compilation Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
Showing
- polkadot/Cargo.lock 52 additions, 8 deletionspolkadot/Cargo.lock
- polkadot/Cargo.toml 3 additions, 1 deletionpolkadot/Cargo.toml
- polkadot/node/network/bridge/Cargo.toml 22 additions, 0 deletionspolkadot/node/network/bridge/Cargo.toml
- polkadot/node/network/bridge/src/lib.rs 912 additions, 0 deletionspolkadot/node/network/bridge/src/lib.rs
- polkadot/node/overseer/Cargo.toml 2 additions, 1 deletionpolkadot/node/overseer/Cargo.toml
- polkadot/node/overseer/examples/minimal-example.rs 15 additions, 10 deletionspolkadot/node/overseer/examples/minimal-example.rs
- polkadot/node/overseer/src/lib.rs 76 additions, 100 deletionspolkadot/node/overseer/src/lib.rs
- polkadot/node/primitives/Cargo.toml 1 addition, 0 deletionspolkadot/node/primitives/Cargo.toml
- polkadot/node/primitives/src/lib.rs 10 additions, 0 deletionspolkadot/node/primitives/src/lib.rs
- polkadot/node/service/Cargo.toml 1 addition, 0 deletionspolkadot/node/service/Cargo.toml
- polkadot/node/service/src/lib.rs 12 additions, 8 deletionspolkadot/node/service/src/lib.rs
- polkadot/node/subsystem/Cargo.toml 3 additions, 2 deletionspolkadot/node/subsystem/Cargo.toml
- polkadot/node/subsystem/src/lib.rs 150 additions, 0 deletionspolkadot/node/subsystem/src/lib.rs
- polkadot/node/subsystem/src/messages.rs 29 additions, 35 deletionspolkadot/node/subsystem/src/messages.rs
- polkadot/node/test-helpers/subsystem/Cargo.toml 12 additions, 0 deletionspolkadot/node/test-helpers/subsystem/Cargo.toml
- polkadot/node/test-helpers/subsystem/src/lib.rs 229 additions, 0 deletionspolkadot/node/test-helpers/subsystem/src/lib.rs
Please register or sign in to comment