From 385d7c0495348474993149c94aa734376c46da08 Mon Sep 17 00:00:00 2001 From: Thomas Winget Date: Thu, 30 Apr 2015 01:02:12 -0400 Subject: Sort txs by per-kb-fee for miners --- src/cryptonote_core/tx_pool.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cryptonote_core/tx_pool.h') 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 #include #include +#include #include #include @@ -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 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 m_txs_by_fee; + //transactions_container m_alternative_transactions; std::string m_config_folder; -- cgit v1.2.3