From 336fc02ad5b7dba862e20b1dcc9189214cb38ad5 Mon Sep 17 00:00:00 2001 From: BlockChainDev Date: Sat, 30 Mar 2019 22:42:07 +0000 Subject: [PATCH] [syncmgr] - Fix bug; accounts for a fresh database startup and we only have the genesis block --- pkg/syncmgr/blockmode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/syncmgr/blockmode.go b/pkg/syncmgr/blockmode.go index 406204bf5..f357ca642 100644 --- a/pkg/syncmgr/blockmode.go +++ b/pkg/syncmgr/blockmode.go @@ -15,7 +15,7 @@ func (s *Syncmgr) blockModeOnBlock(peer SyncPeer, block payload.Block) error { if block.Index > s.nextBlockIndex+2000 { return nil } - if block.Index != s.nextBlockIndex { + if block.Index > s.nextBlockIndex { s.addToBlockPool(block) return nil }