diff options
author | Jon Atack <jon@atack.com> | 2021-04-27 11:04:10 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-05-09 12:50:02 +0200 |
commit | 06a90fa0381c790f7bde2ab9bf47d2b22acef4a5 (patch) | |
tree | 0791ce660a9700afec5b85184483f1e7d3003a50 /test/functional/rpc_psbt.py | |
parent | 0742c7840f03505597fd2de87db97f12597ef667 (diff) |
rpc: for sat/vB fee rates, limit ParseFixedPoint decimals to 3
Diffstat (limited to 'test/functional/rpc_psbt.py')
-rwxr-xr-x | test/functional/rpc_psbt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 05e7523b57..bd382a09f3 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -195,7 +195,7 @@ class PSBTTest(BitcoinTestFramework): assert_approx(res2["fee"], 0.055, 0.005) self.log.info("Test min fee rate checks with walletcreatefundedpsbt are bypassed, e.g. a fee_rate under 1 sat/vB is allowed") - res3 = self.nodes[1].walletcreatefundedpsbt(inputs, outputs, 0, {"fee_rate": "0.99999999", "add_inputs": True}) + res3 = self.nodes[1].walletcreatefundedpsbt(inputs, outputs, 0, {"fee_rate": "0.999", "add_inputs": True}) assert_approx(res3["fee"], 0.00000381, 0.0000001) res4 = self.nodes[1].walletcreatefundedpsbt(inputs, outputs, 0, {"feeRate": 0.00000999, "add_inputs": True}) assert_approx(res4["fee"], 0.00000381, 0.0000001) |