Merge pull request #6649 from paritytech/eip8-fix

Fixed network protocol version negotiation
This commit is contained in:
Robert Habermeier
2017-10-05 18:07:45 +02:00
committed by GitHub

View File

@@ -511,6 +511,7 @@ impl Session {
i += 1;
}
debug!(target: "network", "Hello: {} v{} {} {:?}", client_version, protocol, id, caps);
let protocol = ::std::cmp::min(protocol, host.protocol_version);
self.info.protocol_version = protocol;
self.info.client_version = client_version;
self.info.capabilities = caps;