Skip to content
Open
9 changes: 5 additions & 4 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3988,12 +3988,13 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
for (unsigned int i = 0; i < block.vtx.size(); i++)
GetMainSignals().SyncTransaction(*block.vtx[i], pair.first, i);
}
BatchProofContainer* batchProofContainer = BatchProofContainer::get_instance();
batchProofContainer->fCollectProofs = ShouldBatchSparkProofs(pindexNewTip);
if (!VerifyPendingSparkBatch(state, "connecting new tip"))
return false;
}

BatchProofContainer* batchProofContainer = BatchProofContainer::get_instance();
batchProofContainer->fCollectProofs = ShouldBatchSparkProofs(pindexNewTip);
if (!VerifyPendingSparkBatch(state, "connecting new tip"))
Comment thread
reubenyap marked this conversation as resolved.
Outdated
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
return false;

// When we reach this point, we switched to a new tip (stored in pindexNewTip).

// Notifications/callbacks that can run without cs_main
Expand Down
Loading