forked from TrueCloudLab/neoneo-go
[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 {
|
if block.Index > s.nextBlockIndex+2000 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if block.Index != s.nextBlockIndex {
|
if block.Index > s.nextBlockIndex {
|
||||||
s.addToBlockPool(block)
|
s.addToBlockPool(block)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue