From 62a9ff187076686b39dca64ad4f2f439da0875d1 Mon Sep 17 00:00:00 2001 From: glozow Date: Fri, 26 Jul 2024 14:10:21 +0100 Subject: [PATCH] [refactor] change type of unique_parents to Txid --- src/net_processing.cpp | 2 +- src/node/txdownloadman.h | 2 +- src/node/txdownloadman_impl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index e503a683827..663dbb7634b 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2978,7 +2978,7 @@ std::optional PeerManagerImpl::ProcessInvalidTx(NodeId if (add_extra_compact_tx && RecursiveDynamicUsage(*ptx) < 100000) { AddToCompactExtraTransactions(ptx); } - for (const uint256& parent_txid : unique_parents) { + for (const Txid& parent_txid : unique_parents) { if (peer) AddKnownTx(*peer, parent_txid); } diff --git a/src/node/txdownloadman.h b/src/node/txdownloadman.h index 81b0c76e0a2..2d066cab53f 100644 --- a/src/node/txdownloadman.h +++ b/src/node/txdownloadman.h @@ -92,7 +92,7 @@ struct PackageToValidate { struct RejectedTxTodo { bool m_should_add_extra_compact_tx; - std::vector m_unique_parents; + std::vector m_unique_parents; std::optional m_package_to_validate; }; diff --git a/src/node/txdownloadman_impl.cpp b/src/node/txdownloadman_impl.cpp index f9635d049ad..e9fe958f5dc 100644 --- a/src/node/txdownloadman_impl.cpp +++ b/src/node/txdownloadman_impl.cpp @@ -308,7 +308,7 @@ node::RejectedTxTodo TxDownloadManagerImpl::MempoolRejectedTx(const CTransaction // Whether we should call AddToCompactExtraTransactions at the end bool add_extra_compact_tx{first_time_failure}; // Hashes to pass to AddKnownTx later - std::vector unique_parents; + std::vector unique_parents; // Populated if failure is reconsiderable and eligible package is found. std::optional package_to_validate;