diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-04-30 01:02:12 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-04-30 01:02:12 -0400 |
commit | 385d7c0495348474993149c94aa734376c46da08 (patch) | |
tree | 12e06f60571d4eec122a0236067c6d14ccd5a4db /src/cryptonote_core/tx_pool.h | |
parent | When removing 'stuck' transactions, don't ignore the first tx in the pool (diff) | |
download | monero-385d7c0495348474993149c94aa734376c46da08.tar.xz |
Sort txs by per-kb-fee for miners
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
-rw-r--r-- | src/cryptonote_core/tx_pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index b867a1a7d..9eb7f7e7c 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -34,6 +34,7 @@ #include <set> #include <unordered_map> #include <unordered_set> +#include <queue> #include <boost/serialization/version.hpp> #include <boost/utility.hpp> @@ -131,6 +132,12 @@ namespace cryptonote key_images_container m_spent_key_images; epee::math_helper::once_a_time_seconds<30> m_remove_stuck_tx_interval; + typedef std::unordered_map<crypto::hash, double> tx_by_fee_entry; + + //TODO: add fee_per_kb element to type tx_details and replace this + //functionality by just making m_transactions a std::set + std::set<tx_by_fee_entry> m_txs_by_fee; + //transactions_container m_alternative_transactions; std::string m_config_folder; |