mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
[doc] restore comment about why we check if ptx HasWitness before caching rejected txid
This commit is contained in:
parent
6f4da19cc3
commit
c3c1e15831
1 changed files with 2 additions and 0 deletions
|
@ -3107,6 +3107,8 @@ void PeerManagerImpl::ProcessInvalidTx(NodeId nodeid, const CTransactionRef& ptx
|
|||
// processing of this transaction in the event that child
|
||||
// transactions are later received (resulting in
|
||||
// parent-fetching by txid via the orphan-handling logic).
|
||||
// We only add the txid if it differs from the wtxid, to avoid wasting entries in the
|
||||
// rolling bloom filter.
|
||||
if (state.GetResult() == TxValidationResult::TX_INPUTS_NOT_STANDARD && ptx->HasWitness()) {
|
||||
m_recent_rejects.insert(ptx->GetHash().ToUint256());
|
||||
m_txrequest.ForgetTxHash(ptx->GetHash());
|
||||
|
|
Loading…
Add table
Reference in a new issue