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 #2204 from ethcore/sync-fix
Browse files Browse the repository at this point in the history
Fix syncing with pv63 peers
  • Loading branch information
rphmeier authored Sep 20, 2016
2 parents 48be609 + 302f8a1 commit 28adfc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sync/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ known_heap_size!(0, PeerInfo);

type PacketDecodeError = DecoderError;

const PROTOCOL_VERSION: u8 = 64u8;
const MAX_BODIES_TO_SEND: usize = 256;
const MAX_HEADERS_TO_SEND: usize = 512;
const MAX_NODE_DATA_TO_SEND: usize = 1024;
Expand Down Expand Up @@ -1274,7 +1273,7 @@ impl ChainSync {
let pv64 = io.eth_protocol_version(peer) >= 64;
let mut packet = RlpStream::new_list(if pv64 { 7 } else { 5 });
let chain = io.chain().chain_info();
packet.append(&(PROTOCOL_VERSION as u32));
packet.append(&(io.eth_protocol_version(peer) as u32));
packet.append(&self.network_id);
packet.append(&chain.total_difficulty);
packet.append(&chain.best_block_hash);
Expand Down

0 comments on commit 28adfc3

Please sign in to comment.