Allow remotes to not open a legacy substream (#7075)

* Allow remotes to not open a legacy substream

* Misc fixes

* Special case first protocol as the one bearing the handshake
This commit is contained in:
Pierre Krieger authored and GitHub committed 2020-09-14 15:08:23 +00:00
1 parent e18ddc6d4a
commit eadf5b09f9
8 files changed
+168 -154

No files matched your search

-1
View File
@@ -285,7 +285,6 @@ async fn build_network_future<
sc_rpc::system::PeerInfo {
peer_id: peer_id.to_base58(),
roles: format!("{:?}", p.roles),
protocol_version: p.protocol_version,
best_hash: p.best_hash,
best_number: p.best_number,
}