From ce6e3d8137128e99b2f7f99f79327b8b440df0a2 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Mon, 9 Aug 2021 23:27:38 +0100 Subject: Remove relay-only rounding Remove rounding of transaction sizes when calculating fee minimums for relaying, to simplify fee logic. --- qa/rpc-tests/test_framework/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qa/rpc-tests/test_framework/util.py') diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index 4e4011b3a..a9723df07 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -509,7 +509,7 @@ def random_transaction(nodes, amount, min_fee, fee_increment, fee_variants): def assert_fee_amount(fee, tx_size, fee_per_kB): """Assert the fee was in range""" - target_fee = round_tx_size(tx_size) * fee_per_kB / 1000 + target_fee = fee_per_kB / 1000 if fee < target_fee: raise AssertionError("Fee of %s BTC too low! (Should be %s BTC)"%(str(fee), str(target_fee))) # allow the wallet's estimation to be at most 2 bytes off -- cgit v1.2.3