HomePhabricator

[test] Round target fee to 8 decimals in assert_fee_amount

Description

[test] Round target fee to 8 decimals in assert_fee_amount

Summary:

The output would produce arbitrary number of decimal points, sometimes
resulting in 9 decimals:
AssertionError: Fee of 0.00000415 BTC too low! (Should be 0.000006175
BTC)
The above looks like the expected fee is 6175 sats when in reality it's
618.

Backport of core PR12486
https://github.com/bitcoin/bitcoin/pull/12486/files

Test Plan:

./test/functional/test_runner.py

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D3516

Details

Provenance
Karl-Johan Alm <karljohan-alm@garage.co.jp>Authored on Feb 20 2018, 04:20
FabienCommitted on Jul 3 2019, 15:02
nakihitoPushed on Jul 3 2019, 18:24
Reviewer
Restricted Project
Differential Revision
D3516: [test] Round target fee to 8 decimals in assert_fee_amount
Parents
rSTAGINGd31648b229fa: Merge #13003: qa: Add test for orphan handling
Branches
Unknown
Tags
Unknown