diff options
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 8a935391de..8a5787a886 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -605,6 +605,9 @@ public: /** Expire all transaction (and their dependencies) in the mempool older than time. Return the number of removed transactions. */ int Expire(int64_t time); + /** Returns false if the transaction is in the mempool and not within the chain limit specified. */ + bool TransactionWithinChainLimit(const uint256& txid, size_t chainLimit) const; + unsigned long size() { LOCK(cs); |