diff options
author | Alex Morcos <morcos@chaincode.com> | 2017-01-19 13:58:42 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2017-02-27 11:23:50 -0500 |
commit | 272b25a6a99057fdcd5db5bce70b49625e973080 (patch) | |
tree | e196f5d34afcd9745b9f87bef339e32f52247a65 /src/txmempool.h | |
parent | 12839cdd56ab5ebb06c59bbf9a064f4bd23b7398 (diff) |
[mining] Remove -blockprioritysize.
Remove ability of mining code to fill part of a block with transactions sorted by coin age.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index a7ecb64390..4cba024307 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -720,17 +720,4 @@ public: bool HaveCoins(const uint256 &txid) const; }; -// We want to sort transactions by coin age priority -typedef std::pair<double, CTxMemPool::txiter> TxCoinAgePriority; - -struct TxCoinAgePriorityCompare -{ - bool operator()(const TxCoinAgePriority& a, const TxCoinAgePriority& b) - { - if (a.first == b.first) - return CompareTxMemPoolEntryByScore()(*(b.second), *(a.second)); //Reverse order to make sort less than - return a.first < b.first; - } -}; - #endif // BITCOIN_TXMEMPOOL_H |