diff options
author | Jon Atack <jon@atack.com> | 2020-12-02 13:55:26 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-05-09 12:50:04 +0200 |
commit | 847288df07b45ca535c849e518b22818ab492896 (patch) | |
tree | 74a66d7c4ca910a1662e9afd087053707f57f0fb /test/functional/wallet_send.py | |
parent | 06a90fa0381c790f7bde2ab9bf47d2b22acef4a5 (diff) | |
download | bitcoin-847288df07b45ca535c849e518b22818ab492896.tar.xz |
test: fee rate values that cannot be represented as sat/vB
Diffstat (limited to 'test/functional/wallet_send.py')
-rwxr-xr-x | test/functional/wallet_send.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_send.py b/test/functional/wallet_send.py index 817b4d8331..e061fa952c 100755 --- a/test/functional/wallet_send.py +++ b/test/functional/wallet_send.py @@ -365,6 +365,10 @@ class WalletSendTest(BitcoinTestFramework): for invalid_value in ["", 0.000000001, 1e-09, 1.111111111, 1111111111111111, "31.999999999999999999999"]: self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate=invalid_value, expect_error=(-3, msg)) self.test_send(from_wallet=w0, to_wallet=w1, amount=1, arg_fee_rate=invalid_value, expect_error=(-3, msg)) + # 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"]: + self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate=invalid_value, expect_error=(-3, msg)) + self.test_send(from_wallet=w0, to_wallet=w1, amount=1, arg_fee_rate=invalid_value, expect_error=(-3, msg)) # Test fee_rate out of range (negative number). msg = "Amount out of range" self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate=-1, expect_error=(-3, msg)) |