diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-20 15:08:14 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-10-13 19:29:54 -0400 |
commit | a7d3936de8418522dbb161bfef31c234fc6c2503 (patch) | |
tree | 7b14bdfffb142c4097a8abee0ccb58c1498f591f /src/txmempool.h | |
parent | 326a5652e0d25fdb60c337ef4f1c98a63e0748f0 (diff) |
Add a CValidationInterface::TransactionRemovedFromMempool
This is currently unused, but will by used by wallet to cache when
transactions are in the mempool, obviating the need for calls to
mempool from CWalletTx::InMempool()
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 929d223588..a4d6f6a310 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -513,6 +513,9 @@ public: // to track size/count of descendant transactions. First version of // addUnchecked can be used to have it call CalculateMemPoolAncestors(), and // then invoke the second version. + // Note that addUnchecked is ONLY called from ATMP outside of tests + // and any other callers may break wallet's in-mempool tracking (due to + // lack of CValidationInterface::TransactionAddedToMempool callbacks). bool addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, bool validFeeEstimate = true); bool addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, setEntries &setAncestors, bool validFeeEstimate = true); |