@@ -204,7 +204,7 @@ struct mempoolentry_txid
204
204
class CompareTxMemPoolEntryByDescendantScore
205
205
{
206
206
public:
207
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
207
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
208
208
{
209
209
bool fUseADescendants = UseDescendantScore (a);
210
210
bool fUseBDescendants = UseDescendantScore (b);
@@ -226,7 +226,7 @@ class CompareTxMemPoolEntryByDescendantScore
226
226
}
227
227
228
228
// Calculate which score to use for an entry (avoiding division).
229
- bool UseDescendantScore (const CTxMemPoolEntry &a)
229
+ bool UseDescendantScore (const CTxMemPoolEntry &a) const
230
230
{
231
231
double f1 = (double )a.GetModifiedFee () * a.GetSizeWithDescendants ();
232
232
double f2 = (double )a.GetModFeesWithDescendants () * a.GetTxSize ();
@@ -241,7 +241,7 @@ class CompareTxMemPoolEntryByDescendantScore
241
241
class CompareTxMemPoolEntryByScore
242
242
{
243
243
public:
244
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
244
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
245
245
{
246
246
double f1 = (double )a.GetModifiedFee () * b.GetTxSize ();
247
247
double f2 = (double )b.GetModifiedFee () * a.GetTxSize ();
@@ -255,7 +255,7 @@ class CompareTxMemPoolEntryByScore
255
255
class CompareTxMemPoolEntryByEntryTime
256
256
{
257
257
public:
258
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
258
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
259
259
{
260
260
return a.GetTime () < b.GetTime ();
261
261
}
@@ -264,7 +264,7 @@ class CompareTxMemPoolEntryByEntryTime
264
264
class CompareTxMemPoolEntryByAncestorFee
265
265
{
266
266
public:
267
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
267
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
268
268
{
269
269
double aFees = a.GetModFeesWithAncestors ();
270
270
double aSize = a.GetSizeWithAncestors ();
0 commit comments