aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-12-20 13:12:46 +0100
committerWladimir J. van der Laan <[email protected]>2016-12-20 13:27:08 +0100
commit5a70572049d0e8a2e9228e7acf0e07d61996c33c (patch)
tree22e61f23acd63b9ed6d304f1e999c2cc26e63397 /src/txmempool.h
parentMerge #9316: [wallet] Disable free transactions when relay is disabled (diff)
parentreduce number of lookups in TransactionWithinChainLimit (diff)
downloaddiscoin-5a70572049d0e8a2e9228e7acf0e07d61996c33c.tar.xz
discoin-5a70572049d0e8a2e9228e7acf0e07d61996c33c.zip
Merge #9262: Prefer coins that have fewer ancestors, sanity check txn before ATMP
cee1612 reduce number of lookups in TransactionWithinChainLimit (Gregory Sanders) af9bedb Test for fix of txn chaining in wallet (Gregory Sanders) 5882c09 CreateTransaction: Don't return success with too-many-ancestor txn (Gregory Sanders) 0b2294a SelectCoinsMinConf: Prefer coins with fewer ancestors (Gregory Sanders)
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 8a935391d..8a5787a88 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);