aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_bumpfee.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-12-02 13:55:26 +0100
committerJon Atack <jon@atack.com>2021-05-09 12:50:04 +0200
commit847288df07b45ca535c849e518b22818ab492896 (patch)
tree74a66d7c4ca910a1662e9afd087053707f57f0fb /test/functional/wallet_bumpfee.py
parent06a90fa0381c790f7bde2ab9bf47d2b22acef4a5 (diff)
downloadbitcoin-847288df07b45ca535c849e518b22818ab492896.tar.xz
test: fee rate values that cannot be represented as sat/vB
Diffstat (limited to 'test/functional/wallet_bumpfee.py')
-rwxr-xr-xtest/functional/wallet_bumpfee.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py
index 3d7d236dcf..ff5070c1fa 100755
--- a/test/functional/wallet_bumpfee.py
+++ b/test/functional/wallet_bumpfee.py
@@ -120,6 +120,9 @@ class BumpFeeTest(BitcoinTestFramework):
# Test fee_rate values that don't pass fixed-point parsing checks.
for invalid_value in ["", 0.000000001, 1e-09, 1.111111111, 1111111111111111, "31.999999999999999999999"]:
assert_raises_rpc_error(-3, msg, rbf_node.bumpfee, rbfid, {"fee_rate": invalid_value})
+ # Test fee_rate values that cannot be represented in sat/vB.
+ for invalid_value in [0.0001, 0.00000001, 0.00099999, 31.99999999, "0.0001", "0.00000001", "0.00099999", "31.99999999"]:
+ assert_raises_rpc_error(-3, msg, rbf_node.bumpfee, rbfid, {"fee_rate": invalid_value})
# Test fee_rate out of range (negative number).
assert_raises_rpc_error(-3, "Amount out of range", rbf_node.bumpfee, rbfid, {"fee_rate": -1})
# Test type error.