aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-05-01 17:36:17 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-03-07 12:18:15 +0100
commitfa4e088cbac035b8029a10b492849540150d0622 (patch)
treed17dcac856a41aa29af39a03dcfd7588bf709722 /src/node
parented25cb58f605ba583c735f330482df0bf9348f3a (diff)
wallet: Mark replaced tx to not be in the mempool anymore
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index ec976fe9bf..53f13aadf4 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -526,6 +526,12 @@ public:
LOCK(m_node.mempool->cs);
return IsRBFOptIn(tx, *m_node.mempool);
}
+ bool isInMempool(const uint256& txid) override
+ {
+ if (!m_node.mempool) return false;
+ LOCK(m_node.mempool->cs);
+ return m_node.mempool->exists(txid);
+ }
bool hasDescendantsInMempool(const uint256& txid) override
{
if (!m_node.mempool) return false;