Skip to content

Commit 14b872b

Browse files
committed
Bugfix: QA: mempool_fee_histogram: Compare to actual vsize/fee rather than hard-coding a particular constant
1 parent 514352b commit 14b872b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/mempool_fee_histogram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def run_test(self):
9393
assert_equal(0, info['fee_histogram']['3']['fees'])
9494
assert_equal(3, info['fee_histogram']['3']['from_feerate'])
9595

96-
assert_equal(188, info['fee_histogram']['5']['sizes'])
96+
assert_equal(tx1_info['vsize'], info['fee_histogram']['5']['sizes'])
9797
assert_equal(1, info['fee_histogram']['5']['count'])
98-
assert_equal(940, info['fee_histogram']['5']['fees'])
98+
assert_equal(tx1_info['fee'], info['fee_histogram']['5']['fees'])
9999
assert_equal(5, info['fee_histogram']['5']['from_feerate'])
100100

101101
assert_equal(0, info['fee_histogram']['10']['sizes'])

0 commit comments

Comments
 (0)