Skip to content

Commit a6f7c23

Browse files
committed
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.
1 parent 110e2de commit a6f7c23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sync/src/block/extension.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ impl Extension {
728728
Err(BlockImportError::Import(ImportError::AlreadyInChain)) => {
729729
cwarn!(SYNC, "Downloaded already existing block({})", hash)
730730
}
731+
Err(BlockImportError::Import(ImportError::AlreadyQueued)) => {
732+
cwarn!(SYNC, "Downloaded already queued in the verification queue({})", hash)
733+
}
731734
Err(err) => {
732735
// FIXME: handle import errors
733736
cwarn!(SYNC, "Cannot import block({}): {:?}", hash, err);

0 commit comments

Comments
 (0)