aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-20 15:08:14 -0500
committerMatt Corallo <git@bluematt.me>2017-10-13 19:29:54 -0400
commita7d3936de8418522dbb161bfef31c234fc6c2503 (patch)
tree7b14bdfffb142c4097a8abee0ccb58c1498f591f /src/txmempool.h
parent326a5652e0d25fdb60c337ef4f1c98a63e0748f0 (diff)
downloadbitcoin-a7d3936de8418522dbb161bfef31c234fc6c2503.tar.xz
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.h3
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);