mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
[syncmgr]
- Fix bug; accounts for a fresh database startup and we only have the genesis block
This commit is contained in:
parent
06e71d9b7e
commit
336fc02ad5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue