diff options
Diffstat (limited to 'boost166.patch')
-rw-r--r-- | boost166.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/boost166.patch b/boost166.patch new file mode 100644 index 000000000000..f747874d829e --- /dev/null +++ b/boost166.patch @@ -0,0 +1,60 @@ +diff '--color=auto' -Nura creativecoin-qt.orig/src/miner.h creativecoin-qt.new/src/miner.h +--- creativecoin-qt.orig/src/miner.h 2018-06-18 05:14:51.437350564 -0400 ++++ creativecoin-qt.new/src/miner.h 2018-06-18 05:16:34.102085644 -0400 +@@ -73,7 +73,7 @@ + // except operating on CTxMemPoolModifiedEntry. + // 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; +diff '--color=auto' -Nura creativecoin-qt.orig/src/txmempool.h creativecoin-qt.new/src/txmempool.h +--- creativecoin-qt.orig/src/txmempool.h 2018-06-18 05:14:51.987356993 -0400 ++++ creativecoin-qt.new/src/txmempool.h 2018-06-18 05:19:27.541190334 -0400 +@@ -229,7 +229,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); +@@ -251,7 +251,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(); +@@ -266,7 +266,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(); +@@ -280,7 +280,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(); + } +@@ -289,7 +289,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(); |