summarylogtreecommitdiffstats
path: root/txmempool.patch
diff options
context:
space:
mode:
authorMichael Thalmeier2018-01-07 08:55:34 +0100
committerMichael Thalmeier2018-01-07 08:55:34 +0100
commit51b928c5d6a3e4998ecdf3aea97177602d873d36 (patch)
tree4dc8ce083423764cde395ff4f2ebd3abf90f2d07 /txmempool.patch
downloadaur-51b928c5d6a3e4998ecdf3aea97177602d873d36.tar.gz
First version of Desire crypto package
Diffstat (limited to 'txmempool.patch')
-rw-r--r--txmempool.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/txmempool.patch b/txmempool.patch
new file mode 100644
index 000000000000..8481d42d7ca8
--- /dev/null
+++ b/txmempool.patch
@@ -0,0 +1,40 @@
+diff --git a/src/txmempool.h b/src/txmempool.h
+index 89f7283..cbeae80 100644
+--- a/src/txmempool.h
++++ b/src/txmempool.h
+@@ -204,7 +204,7 @@ struct mempoolentry_txid
+ 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);
+@@ -226,7 +226,7 @@ public:
+ }
+
+ // 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();
+@@ -241,7 +241,7 @@ public:
+ 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();
+@@ -255,7 +255,7 @@ public:
+ 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();
+ }