Make `validation::NetworkService` strongly typed (#295)
By using a strongly typed network service, we make sure that we send and receive the correct messages. Before there was a bug, a `SignedStatement` was sent and a `GossipMessage` was decoded, but this could never work.
Showing
- polkadot/network/Cargo.toml 1 addition, 1 deletionpolkadot/network/Cargo.toml
- polkadot/network/src/gossip.rs 20 additions, 4 deletionspolkadot/network/src/gossip.rs
- polkadot/network/src/lib.rs 1 addition, 1 deletionpolkadot/network/src/lib.rs
- polkadot/network/src/router.rs 20 additions, 15 deletionspolkadot/network/src/router.rs
- polkadot/network/src/tests/validation.rs 7 additions, 5 deletionspolkadot/network/src/tests/validation.rs
- polkadot/network/src/validation.rs 46 additions, 8 deletionspolkadot/network/src/validation.rs
Please register or sign in to comment