MCPcopy Create free account
hub / github.com/ElementsProject/elements / test_no_more_inputs_fails

Function test_no_more_inputs_fails

test/functional/wallet_bumpfee.py:610–617  ·  view source on GitHub ↗
(self, rbf_node, dest_address)

Source from the content-addressed store, hash-verified

608
609
610def test_no_more_inputs_fails(self, rbf_node, dest_address):
611 self.log.info('Test that bumpfee fails when there are no available confirmed outputs')
612 # feerate rbf requires confirmed outputs when change output doesn't exist or is insufficient
613 self.generatetoaddress(rbf_node, 1, dest_address)
614 # spend all funds, no change output
615 rbfid = rbf_node.sendtoaddress(rbf_node.getnewaddress(), rbf_node.getbalance()['bitcoin'], "", "", True)
616 assert_raises_rpc_error(-4, "Unable to create transaction. Insufficient funds", rbf_node.bumpfee, rbfid)
617 self.clear_mempool()
618
619
620if __name__ == "__main__":

Callers 1

run_testMethod · 0.85

Calls 4

assert_raises_rpc_errorFunction · 0.90
infoMethod · 0.80
clear_mempoolMethod · 0.80
generatetoaddressMethod · 0.45

Tested by

no test coverage detected