Make boost::multi_index comparators const

This commit is contained in:
Michel van Kessel
2018-11-24 22:46:39 +01:00
parent 4125432ebc
commit 01d05a6852
2 changed files with 3 additions and 3 deletions

View File

@@ -283,7 +283,7 @@ public:
class CompareTxMemPoolEntryByAncestorFee
{
public:
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
{
double aFees = a.GetModFeesWithAncestors();
double aSize = a.GetSizeWithAncestors();