aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2016-12-02 15:29:20 -0500
committerGregory Sanders <gsanders87@gmail.com>2016-12-13 09:41:04 -0500
commit0b2294a980319cbffa8612ce993e0ecaa26fa509 (patch)
tree82322585413c329bb052fd10715251d2935dec37 /src/txmempool.h
parentdc6dee41f7cf2ba93fcd0fea7c157e4b2775d439 (diff)
downloadbitcoin-0b2294a980319cbffa8612ce993e0ecaa26fa509.tar.xz
SelectCoinsMinConf: Prefer coins with fewer ancestors
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 23fe5a7abe..ef445abaab 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);