From 1b944da29fee442ed295d418efff7762561b0212 Mon Sep 17 00:00:00 2001 From: xanimo Date: Mon, 22 Jul 2024 20:12:39 -0700 Subject: [PATCH] net: fix missing ptx declaration --- src/net_processing.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;