SelectCoinsMinConf: Prefer coins with fewer ancestors

This commit is contained in:
Gregory Sanders
2016-12-02 15:29:20 -05:00
committed by BtcDrak
parent 7201dd7732
commit bdd6d4c97d
5 changed files with 65 additions and 42 deletions

View File

@@ -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);