From 4e16d6ea52d801e1edf8a9fbdc65f2bbc3412056 Mon Sep 17 00:00:00 2001 From: Lazy Nina Date: Mon, 11 Aug 2025 15:31:07 -0400 Subject: [PATCH] skip orphan processing if syncing --- lib/pos_blockchain.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pos_blockchain.go b/lib/pos_blockchain.go index 48c6256d9..daf905463 100644 --- a/lib/pos_blockchain.go +++ b/lib/pos_blockchain.go @@ -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)