aboutsummaryrefslogtreecommitdiff
path: root/src/txorphanage.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2024-05-10 10:55:39 +0100
committerglozow <gloriajzhao@gmail.com>2024-05-14 10:32:27 +0100
commitefcc5930175f31b685adb4627a038d9f0848eb1f (patch)
tree2437c1e04f26b3475591148c14b0635c2e7b1159 /src/txorphanage.h
parent7e475b9648bbee04f5825b922ba0399373eaa5a9 (diff)
downloadbitcoin-efcc5930175f31b685adb4627a038d9f0848eb1f.tar.xz
[refactor] TxOrphanage::HaveTx only by wtxid
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r--src/txorphanage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h
index a3c8edaa2a..33e41ff5b7 100644
--- a/src/txorphanage.h
+++ b/src/txorphanage.h
@@ -23,8 +23,8 @@ public:
/** Add a new orphan transaction */
bool AddTx(const CTransactionRef& tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
- /** Check if we already have an orphan transaction (by txid or wtxid) */
- bool HaveTx(const GenTxid& gtxid) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
+ /** Check if we already have an orphan transaction (by wtxid only) */
+ bool HaveTx(const Wtxid& wtxid) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);
/** Extract a transaction from a peer's work set
* Returns nullptr if there are no transactions to work on.