calculating peer highest number on fly

This commit is contained in:
Nikolay Volf
2016-02-06 22:16:59 +03:00
parent b606df451e
commit 49e61b87a0
3 changed files with 7 additions and 17 deletions

View File

@@ -136,8 +136,6 @@ fn propagade() {
assert_eq!(1000, net.peer(1).chain.chain_info().best_block_number);
assert_eq!(1000, net.peer(2).chain.chain_info().best_block_number);
assert_eq!(net.peer(0).sync.get_peer_latest_number(1), 1000);
net.sync_step_peer(0);
// 2 peers to sync

View File

@@ -84,7 +84,6 @@ impl BlockChainClient for TestBlockChainClient {
fn block_header(&self, h: &H256) -> Option<Bytes> {
self.blocks.read().unwrap().get(h).map(|r| Rlp::new(r).at(0).as_raw().to_vec())
}
fn block_body(&self, h: &H256) -> Option<Bytes> {