Skip to content

Commit

Permalink
net: fix missing ptx declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
xanimo committed Jul 23, 2024
1 parent 2e5f0e3 commit 1b944da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,12 @@ 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 auto& ptx : pblock->vtx) {
g_txrequest.ForgetTxHash(ptx->GetHash());
g_txrequest.ForgetTxHash(ptx->GetWitnessHash());
}
}
}

static CCriticalSection cs_most_recent_block;
Expand Down

0 comments on commit 1b944da

Please sign in to comment.