[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.
This commit is contained in:
glozow
2021-10-20 16:41:45 +01:00
parent d50fbd4c5b
commit 4307849256
8 changed files with 29 additions and 30 deletions

View File

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