Skip to content

Commit 60ac00d

Browse files
committed
Don't track transactions at all during IBD.
This was an oversight, where blocks and mempool tracking were ignored during IBD, but transactions that arrived during IBD but were included in blocks after IBD were not ignored.
1 parent 4df4479 commit 60ac00d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/validation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,9 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
692692
}
693693
}
694694

695-
CTxMemPoolEntry entry(ptx, nFees, nAcceptTime, dPriority, chainActive.Height(), pool.HasNoInputsOf(tx), inChainInputValue, fSpendsCoinbase, nSigOpsCost, lp);
695+
CTxMemPoolEntry entry(ptx, nFees, nAcceptTime, dPriority, chainActive.Height(),
696+
!IsInitialBlockDownload() && pool.HasNoInputsOf(tx),
697+
inChainInputValue, fSpendsCoinbase, nSigOpsCost, lp);
696698
unsigned int nSize = entry.GetTxSize();
697699

698700
// Check that the transaction doesn't have an excessive number of

0 commit comments

Comments
 (0)