aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2015-09-24 13:21:31 -0400
committerMatt Corallo <git@bluematt.me>2015-10-13 00:44:03 -0700
commit78b82f4a16d8aad15ef397b1a1cd075b2efc8c16 (patch)
treec6aef9e8f52ce6f18fc3fb710ed03d5ea1cd1a28 /src/txmempool.h
parent4ca6ddec4d7918b47f0e4747c5647daf54675306 (diff)
downloadbitcoin-78b82f4a16d8aad15ef397b1a1cd075b2efc8c16.tar.xz
Reverse the sort on the mempool's feerate index
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index c0eef0dd22..2085b718e2 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -160,9 +160,9 @@ public:
double f2 = aSize * bFees;
if (f1 == f2) {
- return a.GetTime() < b.GetTime();
+ return a.GetTime() >= b.GetTime();
}
- return f1 > f2;
+ return f1 < f2;
}
// Calculate which feerate to use for an entry (avoiding division).