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
2020-09-14 17:08:23 +02:00
committed by GitHub
parent e18ddc6d4a
commit eadf5b09f9
8 changed files with 168 additions and 154 deletions
-2
View File
@@ -73,7 +73,6 @@ fn api<T: Into<Option<Status>>>(sync: T) -> System<Block> {
peers.push(PeerInfo {
peer_id: status.peer_id.to_base58(),
roles: format!("{}", Role::Full),
protocol_version: 1,
best_hash: Default::default(),
best_number: 1,
});
@@ -259,7 +258,6 @@ fn system_peers() {
vec![PeerInfo {
peer_id: peer_id.to_base58(),
roles: "FULL".into(),
protocol_version: 1,
best_hash: Default::default(),
best_number: 1u64,
}]