Stop sending messages on legacy substream altogether (#6975)
* Stop sending messages on legacy substream altogether * Ensure that handshake is sent back even in case of back-pressure * Update client/network/src/protocol/generic_proto/handler/group.rs Co-authored-by:Max Inden <mail@max-inden.de> * Also process OpenRequest and Closed * Also process OpenRequest and Closed * Fix bad merge * God I'm so lost with all these merges * Immediately return Closed * Add warning for sending on non-registered protocol * Register GrandPa protocol in tests * Update client/network/src/protocol/generic_proto/handler/group.rs Co-authored-by:
Max Inden <mail@max-inden.de> Co-authored-by:
Max Inden <mail@max-inden.de>
Showing
- substrate/client/finality-grandpa/src/tests.rs 10 additions, 1 deletionsubstrate/client/finality-grandpa/src/tests.rs
- substrate/client/network/src/protocol.rs 16 additions, 160 deletionssubstrate/client/network/src/protocol.rs
- substrate/client/network/src/protocol/generic_proto/behaviour.rs 0 additions, 24 deletions...te/client/network/src/protocol/generic_proto/behaviour.rs
- substrate/client/network/src/protocol/generic_proto/handler/group.rs 25 additions, 43 deletions...lient/network/src/protocol/generic_proto/handler/group.rs
- substrate/client/network/src/protocol/generic_proto/handler/legacy.rs 0 additions, 20 deletions...ient/network/src/protocol/generic_proto/handler/legacy.rs
- substrate/client/network/src/protocol/generic_proto/tests.rs 8 additions, 142 deletionssubstrate/client/network/src/protocol/generic_proto/tests.rs
- substrate/client/network/src/protocol/generic_proto/upgrade/legacy.rs 0 additions, 9 deletions...ient/network/src/protocol/generic_proto/upgrade/legacy.rs
- substrate/client/network/src/service.rs 3 additions, 32 deletionssubstrate/client/network/src/service.rs
- substrate/client/network/test/src/lib.rs 8 additions, 2 deletionssubstrate/client/network/test/src/lib.rs
Please register or sign in to comment