diff options
author | glozow <gloriajzhao@gmail.com> | 2021-10-20 16:41:45 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-10-21 16:26:59 +0100 |
commit | 4307849256761fe2440d82bbec892d0e8e6b4dd4 (patch) | |
tree | 7d32e7727d87b15b4b45a98a446b357a5072570d /src/node/interfaces.cpp | |
parent | d50fbd4c5b4bc72415854d582cedf94541a46983 (diff) | |
download | bitcoin-4307849256761fe2440d82bbec892d0e8e6b4dd4.tar.xz |
[mempool] delete exists(uint256) function
Allowing callers to pass in a uint256 (which could be txid or wtxid)
but then always assuming that it's a txid is a footgunny interface.
Diffstat (limited to 'src/node/interfaces.cpp')
-rw-r--r-- | src/node/interfaces.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 73f4036057..192caf7994 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -555,7 +555,7 @@ public: { if (!m_node.mempool) return false; LOCK(m_node.mempool->cs); - return m_node.mempool->exists(txid); + return m_node.mempool->exists(GenTxid::Txid(txid)); } bool hasDescendantsInMempool(const uint256& txid) override { |