diff options
| author | Gregory Sanders <[email protected]> | 2016-12-02 15:29:20 -0500 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2016-12-13 09:41:04 -0500 |
| commit | 0b2294a980319cbffa8612ce993e0ecaa26fa509 (patch) | |
| tree | 82322585413c329bb052fd10715251d2935dec37 /src/txmempool.h | |
| parent | Merge #9183: Final Preparation for main.cpp Split (diff) | |
| download | discoin-0b2294a980319cbffa8612ce993e0ecaa26fa509.tar.xz discoin-0b2294a980319cbffa8612ce993e0ecaa26fa509.zip | |
SelectCoinsMinConf: Prefer coins with fewer ancestors
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 23fe5a7ab..ef445abaa 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); |