diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-15 09:55:03 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-15 09:57:24 +0100 |
commit | 9501dc27b336fc20adb0c367e0904b57bd507f51 (patch) | |
tree | d3c27fff0054739a2f50652b7010c9f21e5a6a8f /src/txmempool.h | |
parent | 45cf8a03cb57b8639a8d47323bde46ba22d9eeaf (diff) | |
parent | 8e617e3708e0e4d42d586531450a21ae70aecf63 (diff) | |
download | bitcoin-9501dc27b336fc20adb0c367e0904b57bd507f51.tar.xz |
Merge #12127: Remove unused mempool index
8e617e3 Remove unused mempool index (Suhas Daftuar)
Pull request description:
We haven't used the "mining_score" index since 0.12, so remove it.
Tree-SHA512: ae37b8663194986eaeecfc2bbeca7ecb4ae6f0d8384515fa218cbc939a580d4b9f7f997c5297c3f1b3c3a0651edb092f373ac9a4808aaec30d38cb99d5f3ed70
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 512e70f8fa..ad0249c9a2 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -287,7 +287,6 @@ public: // Multi_index tag names struct descendant_score {}; struct entry_time {}; -struct mining_score {}; struct ancestor_score {}; class CBlockPolicyEstimator; @@ -356,7 +355,6 @@ public: * - transaction hash * - feerate [we use max(feerate of tx, feerate of tx with all descendants)] * - time in mempool - * - mining score (feerate modified by any fee deltas from PrioritiseTransaction) * * Note: the term "descendant" refers to in-mempool transactions that depend on * this one, while "ancestor" refers to in-mempool transactions that a given @@ -446,12 +444,6 @@ public: boost::multi_index::identity<CTxMemPoolEntry>, CompareTxMemPoolEntryByEntryTime >, - // sorted by score (for mining prioritization) - boost::multi_index::ordered_unique< - boost::multi_index::tag<mining_score>, - boost::multi_index::identity<CTxMemPoolEntry>, - CompareTxMemPoolEntryByScore - >, // sorted by fee rate with ancestors boost::multi_index::ordered_non_unique< boost::multi_index::tag<ancestor_score>, |