diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 7a98e7b826..88931d6705 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -727,6 +727,12 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool, const std::optional frinfo['from'] + del frinfo['to'] + assert_equal(frinfo, { 'from': new_n, 'count': 0, 'fees': 0, @@ -191,6 +201,8 @@ class MempoolFeeHistogramTest(BitcoinTestFramework): assert_equal(bin['count'], 0) assert_greater_than_or_equal(bin['fees'], 0) assert_greater_than_or_equal(bin['size'], 0) + if bin['to'] is not None: + assert_greater_than_or_equal(bin['to'], bin['from']) total_fees += bin['fees'] if bin['count'] == 0: