From 22106693f33138e894e2aca7e744936a28322619 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Tue, 20 Mar 2018 17:50:05 +0000 Subject: [PATCH] Still need to check if syncing before asking for orphan parent --- grin/src/adapters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grin/src/adapters.rs b/grin/src/adapters.rs index df85c60c2..d93cc5231 100644 --- a/grin/src/adapters.rs +++ b/grin/src/adapters.rs @@ -392,7 +392,7 @@ impl NetToChainAdapter { Ok(_) => true, Err(chain::Error::Orphan) => { // make sure we did not miss the parent block - if !chain.is_orphan(&prev_hash) { + if !chain.is_orphan(&prev_hash) && !self.currently_syncing.load(Ordering::Relaxed) { if let Err(_) = chain.get_block_header(&prev_hash) { debug!(LOGGER, "adapter: process_block: received an orphan block, checking the parent: {:}", prev_hash); self.request_block_by_hash(prev_hash, &addr)