File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,12 @@ def sendall_fails_on_high_fee(self):
284284 recipients = [self .remainder_target ],
285285 fee_rate = 100000 )
286286
287+ @cleanup
288+ def sendall_fails_on_low_fee (self ):
289+ self .log .info ("Test sendall fails if the transaction fee is lower than the minimum fee rate setting" )
290+ assert_raises_rpc_error (- 8 , "Fee rate (0.999 sat/vB) is lower than the minimum fee rate setting (1.000 sat/vB)" ,
291+ self .wallet .sendall , recipients = [self .recipient ], fee_rate = 0.999 )
292+
287293 @cleanup
288294 def sendall_watchonly_specific_inputs (self ):
289295 self .log .info ("Test sendall with a subset of UTXO pool in a watchonly wallet" )
@@ -376,6 +382,9 @@ def run_test(self):
376382 # Sendall fails when providing a fee that is too high
377383 self .sendall_fails_on_high_fee ()
378384
385+ # Sendall fails when fee rate is lower than minimum
386+ self .sendall_fails_on_low_fee ()
387+
379388 # Sendall succeeds with watchonly wallets spending specific UTXOs
380389 self .sendall_watchonly_specific_inputs ()
381390
You can’t perform that action at this time.
0 commit comments