Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6649 from paritytech/eip8-fix
Browse files Browse the repository at this point in the history
Fixed network protocol version negotiation
  • Loading branch information
rphmeier authored Oct 5, 2017
2 parents 7dc281f + c4c2c77 commit 77933aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/network/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77933aa

Please sign in to comment.