From 8dc7fcbe07cf20de00738770d73927f7a0b0a7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Tue, 15 Nov 2016 11:20:54 +0100 Subject: [PATCH] Don't clear propagated transactions --- sync/src/chain.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sync/src/chain.rs b/sync/src/chain.rs index 2f810e754..65fca4069 100644 --- a/sync/src/chain.rs +++ b/sync/src/chain.rs @@ -1850,7 +1850,7 @@ impl ChainSync { /// propagates new transactions to all peers pub fn propagate_new_transactions(&mut self, io: &mut SyncIo) -> usize { - // Early out of nobody to send to. + // Early out if nobody to send to. if self.peers.is_empty() { return 0; } @@ -1948,9 +1948,6 @@ impl ChainSync { trace!(target: "sync", "Bad blocks in the queue, restarting"); self.restart(io); } - for peer_info in self.peers.values_mut() { - peer_info.last_sent_transactions.clear(); - } } }