From 4ded10fcbe3602b404a83f84aa069b4b4fa78db3 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sun, 30 Oct 2016 12:19:20 +0100 Subject: [PATCH] Fixed transaction propagation (#2984) --- sync/src/chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/src/chain.rs b/sync/src/chain.rs index 72df47c07..7f48daa71 100644 --- a/sync/src/chain.rs +++ b/sync/src/chain.rs @@ -1349,7 +1349,7 @@ impl ChainSync { /// Called when peer sends us new transactions fn on_peer_transactions(&mut self, io: &mut SyncIo, peer_id: PeerId, r: &UntrustedRlp) -> Result<(), PacketDecodeError> { // Accept transactions only when fully synced - if !io.is_chain_queue_empty() || self.state != SyncState::Idle || self.state != SyncState::NewBlocks { + if !io.is_chain_queue_empty() || (self.state != SyncState::Idle && self.state != SyncState::NewBlocks) { trace!(target: "sync", "{} Ignoring transactions while syncing", peer_id); return Ok(()); }