Browse Source

Avoid ztx validation during IBD if height is less than latest checkpoint

pull/305/head
Duke 11 months ago
parent
commit
18f0689695
  1. 5
      src/main.cpp

5
src/main.cpp

@ -1363,6 +1363,11 @@ bool ContextualCheckTransaction(int32_t slowflag,const CBlock *block, CBlockInde
REJECT_INVALID, "bad-txns-invalid-script-data-for-coinbase-time-lock");
}
// Avoid ztx validation during IBD if height is less than latest checkpoint
if (fCheckpointsEnabled && (nHeight < Checkpoints::GetTotalBlocksEstimate(Params().Checkpoints())) ) {
return true;
}
if (!tx.vShieldedSpend.empty() ||
!tx.vShieldedOutput.empty())
{

Loading…
Cancel
Save