@@ -227,7 +227,7 @@ struct mempoolentry_txid
227
227
class CompareTxMemPoolEntryByDescendantScore
228
228
{
229
229
public:
230
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
230
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
231
231
{
232
232
bool fUseADescendants = UseDescendantScore (a);
233
233
bool fUseBDescendants = UseDescendantScore (b);
@@ -249,7 +249,7 @@ class CompareTxMemPoolEntryByDescendantScore
249
249
}
250
250
251
251
// Calculate which score to use for an entry (avoiding division).
252
- bool UseDescendantScore (const CTxMemPoolEntry &a)
252
+ bool UseDescendantScore (const CTxMemPoolEntry &a) const
253
253
{
254
254
double f1 = (double )a.GetModifiedFee () * a.GetSizeWithDescendants ();
255
255
double f2 = (double )a.GetModFeesWithDescendants () * a.GetTxSize ();
@@ -264,7 +264,7 @@ class CompareTxMemPoolEntryByDescendantScore
264
264
class CompareTxMemPoolEntryByScore
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 f1 = (double )a.GetModifiedFee () * b.GetTxSize ();
270
270
double f2 = (double )b.GetModifiedFee () * a.GetTxSize ();
@@ -278,7 +278,7 @@ class CompareTxMemPoolEntryByScore
278
278
class CompareTxMemPoolEntryByEntryTime
279
279
{
280
280
public:
281
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
281
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
282
282
{
283
283
return a.GetTime () < b.GetTime ();
284
284
}
@@ -287,7 +287,7 @@ class CompareTxMemPoolEntryByEntryTime
287
287
class CompareTxMemPoolEntryByAncestorFee
288
288
{
289
289
public:
290
- bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
290
+ bool operator ()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
291
291
{
292
292
double aFees = a.GetModFeesWithAncestors ();
293
293
double aSize = a.GetSizeWithAncestors ();
0 commit comments