diff options
author | Jon Atack <jon@atack.com> | 2020-04-06 18:37:50 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-04-06 18:37:50 +0200 |
commit | b224b4e7bd8c52bb70d933c1bc524c0fe87ac0c1 (patch) | |
tree | e945f43481c49938fe0c8c128a27cd28d9f7d925 /test/functional | |
parent | 425a7f900ed824caa5d4a93991542c70171539fe (diff) |
test: wallet_bumpfee assertion fixup
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/wallet_bumpfee.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py index 2e6a3e0ce4..0b3dea94d5 100755 --- a/test/functional/wallet_bumpfee.py +++ b/test/functional/wallet_bumpfee.py @@ -258,8 +258,7 @@ def test_dust_to_fee(self, rbf_node, dest_address): # in the witness is divided by 4 for the vsize, so this variance can take the weight across a 4-byte # boundary. Thus expected transaction size (p2wpkh, 1 input, 2 outputs) is 140-141 vbytes, usually 141. if not 140 <= fulltx["vsize"] <= 141: - print("Error: Invalid tx vsize of {} (140-141 expected), full tx: {}".format(fulltx["vsize"], fulltx)) - raise AssertionError + raise AssertionError("Invalid tx vsize of {} (140-141 expected), full tx: {}".format(fulltx["vsize"], fulltx)) # Bump with fee_rate of 0.00350250 BTC per 1000 vbytes to create dust. # Expected fee is 141 vbytes * fee_rate 0.00350250 BTC / 1000 vbytes = 0.00049385 BTC. # or occasionally 140 vbytes * fee_rate 0.00350250 BTC / 1000 vbytes = 0.00049035 BTC. |