File superbitcoin-boost.patch of Package superbitcoin
--- src/miner/miner.h 2018-11-29 21:25:50.403968868 +0100
+++ miner.h 2019-03-27 10:58:54.027946925 +0100
@@ -82,7 +82,7 @@
// TODO: refactor to avoid duplication of this logic.
struct CompareModifiedEntry
{
- bool operator()(const CTxMemPoolModifiedEntry &a, const CTxMemPoolModifiedEntry &b)
+ bool operator()(const CTxMemPoolModifiedEntry &a, const CTxMemPoolModifiedEntry &b) const
{
double f1 = (double)a.nModFeesWithAncestors * b.nSizeWithAncestors;
double f2 = (double)b.nModFeesWithAncestors * a.nSizeWithAncestors;
--- src/mempool/comparetxmempoolentry.h 2018-11-29 21:25:50.399968868 +0100
+++ comparetxmempoolentry.h 2019-03-27 13:02:31.424977931 +0100
@@ -13,7 +13,7 @@
class CompareTxMemPoolEntryByDescendantScore
{
public:
- bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b)
+ bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b) const
{
bool fUseADescendants = UseDescendantScore(a);
bool fUseBDescendants = UseDescendantScore(b);
@@ -36,7 +36,7 @@
}
// Calculate which score to use for an entry (avoiding division).
- bool UseDescendantScore(const CTxMemPoolEntry &a)
+ bool UseDescendantScore(const CTxMemPoolEntry &a) const
{
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
@@ -51,7 +51,7 @@
class CompareTxMemPoolEntryByScore
{
public:
- bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b)
+ bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b) const
{
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
@@ -66,7 +66,7 @@
class CompareTxMemPoolEntryByEntryTime
{
public:
- bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b)
+ bool operator()(const CTxMemPoolEntry &a, const CTxMemPoolEntry &b) const
{
return a.GetTime() < b.GetTime();
}
@@ -75,7 +75,7 @@
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();