Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/pos_blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ func (bc *Blockchain) processBlockPoS(block *MsgDeSoBlock, currentView uint64, v
}
}

// If we're currently syncing, then we can skip the orphan processing step.
if bc.isSyncing() {
return appliedNewTip, false, nil, nil
}

// Now that we've processed this block, we check for any blocks that were previously
// stored as orphans, which are children of this block. We can process them now.
blockNodesAtNextHeight := bc.blockIndex.GetBlockNodesByHeight(uint64(blockNode.Height) + 1)
Expand Down