Skip to content

Commit d10e35a

Browse files
committed
Bugfix: QA: Ensure mempool_fee_histogram expected feerates rounded down
As of bitcoin#22949, fees are rounded up based on feerate, but going the opposite direction from fee to feerate still must round down.
1 parent 40f27a5 commit d10e35a

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
@@ -15,11 +15,11 @@
1515
assert_equal,
1616
assert_greater_than,
1717
assert_greater_than_or_equal,
18-
ceildiv,
1918
)
2019

2120
def get_actual_fee_rate(fee_in_satoshis, vsize):
22-
fee_rate = ceildiv(fee_in_satoshis, vsize)
21+
# NOTE: Must round down, unlike ceildiv/get_fee
22+
fee_rate = fee_in_satoshis // vsize
2323
return str(fee_rate)
2424

2525
def get_tx_details(node, txid):

0 commit comments

Comments
 (0)