Skip to content

Commit

Permalink
net: add missing for loop needed to access CTransaction tx
Browse files Browse the repository at this point in the history
  • Loading branch information
xanimo committed Jul 24, 2024
1 parent cd65208 commit eea8270
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,10 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr<const CBlock>& pb
}

// Forget tracked announcements for transactions included in a block.
g_txrequest.ForgetTxHash(tx.GetHash());
for (const CTransactionRef& ptx : pblock->vtx) {
const CTransaction& tx = *ptx;
g_txrequest.ForgetTxHash(tx.GetHash());
}
}

static CCriticalSection cs_most_recent_block;
Expand Down

0 comments on commit eea8270

Please sign in to comment.