Skip to content

Commit

Permalink
Fix non-const operator for mempool
Browse files Browse the repository at this point in the history
- Thank you clang
  • Loading branch information
who-biz committed Jun 2, 2019
1 parent 247aaa3 commit d52daa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cryptonote_core/tx_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace cryptonote
class txCompare
{
public:
bool operator()(const tx_by_fee_and_receive_time_entry& a, const tx_by_fee_and_receive_time_entry& b)
bool operator()(const tx_by_fee_and_receive_time_entry& a, const tx_by_fee_and_receive_time_entry& b) const
{
// sort by greatest first, not least
if (a.first.first > b.first.first) return true;
Expand All @@ -74,7 +74,7 @@ namespace cryptonote
};

//! container for sorting transactions by fee per unit size
typedef std::set<tx_by_fee_and_receive_time_entry, txCompare> sorted_tx_container;
typedef std::set<const tx_by_fee_and_receive_time_entry, txCompare> sorted_tx_container;

/**
* @brief Transaction pool, handles transactions which are not part of a block
Expand Down

0 comments on commit d52daa3

Please sign in to comment.