calculating peer highest number on fly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user