aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2016-12-02 15:29:20 -0500
committerBtcDrak <btcdrak@gmail.com>2016-12-20 10:10:01 +0000
commitbdd6d4c97df2052fe160f12ac507ec5946f91a07 (patch)
tree84e96c635093ff4513562331a5b2789b56300454 /src/txmempool.h
parent7201dd7732fa69b498b1d647c66c2460af9bed7b (diff)
downloadbitcoin-bdd6d4c97df2052fe160f12ac507ec5946f91a07.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 afb328b5af..8129a05375 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -595,6 +595,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);