Merge Protocol and ProtocolBehaviour (#2962)
* Pass the peerset config to ProtocolBehaviour * Don't pass the protocol versions * Move fields from protocol_behaviour.rs to protocol.rs * Remove LocalNetworkOut * Move CustomProtos from protocol_behaviour.rs to protocol.rs * Remove ProtocolBehaviour * Inline poll() * Force Behaviour to use Protocol * Don't even attempt to have working tests * Remove NetworkOut trait * Line widths
Showing
- substrate/core/network/src/behaviour.rs 42 additions, 110 deletionssubstrate/core/network/src/behaviour.rs
- substrate/core/network/src/lib.rs 0 additions, 1 deletionsubstrate/core/network/src/lib.rs
- substrate/core/network/src/protocol.rs 354 additions, 180 deletionssubstrate/core/network/src/protocol.rs
- substrate/core/network/src/protocol_behaviour.rs 0 additions, 468 deletionssubstrate/core/network/src/protocol_behaviour.rs
- substrate/core/network/src/service.rs 12 additions, 15 deletionssubstrate/core/network/src/service.rs
Please register or sign in to comment