diff options
author | Aurèle Oulès <aurele@oules.com> | 2022-12-01 20:25:58 +0100 |
---|---|---|
committer | Aurèle Oulès <aurele@oules.com> | 2022-12-02 13:30:40 +0100 |
commit | cb44c5923a7c0ba15400d2b420faedd39cdce128 (patch) | |
tree | 84f51bfe6fde664823edfd00d8463ed6da773d78 | |
parent | 02515117dc5a25998f5dd92938eccb326b1eec5c (diff) |
test: Add sendall test for min-fee setting
-rwxr-xr-x | test/functional/wallet_sendall.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/wallet_sendall.py b/test/functional/wallet_sendall.py index 042b5dbf79..2221c39588 100755 --- a/test/functional/wallet_sendall.py +++ b/test/functional/wallet_sendall.py @@ -285,6 +285,12 @@ class SendallTest(BitcoinTestFramework): fee_rate=100000) @cleanup + def sendall_fails_on_low_fee(self): + self.log.info("Test sendall fails if the transaction fee is lower than the minimum fee rate setting") + assert_raises_rpc_error(-8, "Fee rate (0.999 sat/vB) is lower than the minimum fee rate setting (1.000 sat/vB)", + self.wallet.sendall, recipients=[self.recipient], fee_rate=0.999) + + @cleanup def sendall_watchonly_specific_inputs(self): self.log.info("Test sendall with a subset of UTXO pool in a watchonly wallet") self.add_utxos([17, 4]) @@ -376,6 +382,9 @@ class SendallTest(BitcoinTestFramework): # Sendall fails when providing a fee that is too high self.sendall_fails_on_high_fee() + # Sendall fails when fee rate is lower than minimum + self.sendall_fails_on_low_fee() + # Sendall succeeds with watchonly wallets spending specific UTXOs self.sendall_watchonly_specific_inputs() |