Skip to content

Commit f71ab1d

Browse files
committed
Merge pull request #1836 from lodgepole/feature/backport-11847
[backport] Fixes compatibility with boost 1.66
1 parent fa5fc41 commit f71ab1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/txmempool.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct mempoolentry_txid
204204
class CompareTxMemPoolEntryByDescendantScore
205205
{
206206
public:
207-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
207+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
208208
{
209209
bool fUseADescendants = UseDescendantScore(a);
210210
bool fUseBDescendants = UseDescendantScore(b);
@@ -226,7 +226,7 @@ class CompareTxMemPoolEntryByDescendantScore
226226
}
227227

228228
// Calculate which score to use for an entry (avoiding division).
229-
bool UseDescendantScore(const CTxMemPoolEntry &a)
229+
bool UseDescendantScore(const CTxMemPoolEntry &a) const
230230
{
231231
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
232232
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
@@ -241,7 +241,7 @@ class CompareTxMemPoolEntryByDescendantScore
241241
class CompareTxMemPoolEntryByScore
242242
{
243243
public:
244-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
244+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
245245
{
246246
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
247247
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
@@ -255,7 +255,7 @@ class CompareTxMemPoolEntryByScore
255255
class CompareTxMemPoolEntryByEntryTime
256256
{
257257
public:
258-
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
258+
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
259259
{
260260
return a.GetTime() < b.GetTime();
261261
}

0 commit comments

Comments
 (0)