[syncmgr]

- Fix bug; accounts for a fresh database startup and we only have the genesis block
This commit is contained in:
BlockChainDev 2019-03-30 22:42:07 +00:00
parent 06e71d9b7e
commit 336fc02ad5

View file

@ -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
}