From 98ccec64c50b4af92cfbe054eddb835a9375b6cc Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Mon, 23 Sep 2019 12:13:56 +0900 Subject: [PATCH] Import following downloaded blocks if the preceding block is already queued Before this commit, following blocks were dropped and this behavior was causing "parent not found" errors in Block Sync. --- sync/src/block/extension.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sync/src/block/extension.rs b/sync/src/block/extension.rs index 01cdb59852..d865a56fd2 100644 --- a/sync/src/block/extension.rs +++ b/sync/src/block/extension.rs @@ -728,6 +728,9 @@ impl Extension { Err(BlockImportError::Import(ImportError::AlreadyInChain)) => { cwarn!(SYNC, "Downloaded already existing block({})", hash) } + Err(BlockImportError::Import(ImportError::AlreadyQueued)) => { + cwarn!(SYNC, "Downloaded already queued in the verification queue({})", hash) + } Err(err) => { // FIXME: handle import errors cwarn!(SYNC, "Cannot import block({}): {:?}", hash, err);