wallet: Mark replaced tx to not be in the mempool anymore

This commit is contained in:
MarcoFalke
2020-05-01 17:36:17 +02:00
parent ed25cb58f6
commit fa4e088cba
3 changed files with 15 additions and 0 deletions

View File

@@ -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;