diff --git a/src/net_processing.cpp b/src/net_processing.cpp index e40836a699b..1779b7519ca 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -834,7 +834,12 @@ void PeerLogicValidation::BlockConnected(const std::shared_ptr& 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;