aboutsummaryrefslogtreecommitdiff
path: root/src/node/interfaces.cpp
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-10-20 16:41:45 +0100
committerglozow <gloriajzhao@gmail.com>2021-10-21 16:26:59 +0100
commit4307849256761fe2440d82bbec892d0e8e6b4dd4 (patch)
tree7d32e7727d87b15b4b45a98a446b357a5072570d /src/node/interfaces.cpp
parentd50fbd4c5b4bc72415854d582cedf94541a46983 (diff)
downloadbitcoin-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.cpp2
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
{