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 #744 from ethcore/sync
Browse files Browse the repository at this point in the history
Missing return for #737
  • Loading branch information
gavofyork committed Mar 15, 2016
2 parents 77bdca5 + e538b41 commit 5a96f99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sync/src/chain.rs
Expand Up @@ -481,6 +481,7 @@ impl ChainSync {
trace!(target: "sync", "{} -> NewBlock ({})", peer_id, h);
if !self.have_common_block {
trace!(target: "sync", "NewBlock ignored while seeking");
return Ok(());
}
let header: BlockHeader = try!(header_rlp.as_val());
let mut unknown = false;
Expand Down Expand Up @@ -1497,6 +1498,7 @@ mod tests {

let mut queue = VecDeque::new();
let mut sync = dummy_sync_with_peer(client.block_hash_delta_minus(5));
sync.have_common_block = true;
let mut io = TestIo::new(&mut client, &mut queue, None);

let block = UntrustedRlp::new(&block_data);
Expand Down

0 comments on commit 5a96f99

Please sign in to comment.