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

Function test_rebumping

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

Source from the content-addressed store, hash-verified

482
483
484def test_rebumping(self, rbf_node, dest_address):
485 self.log.info('Test that re-bumping the original tx fails, but bumping successor works')
486 rbfid = spend_one_input(rbf_node, dest_address)
487 bumped = rbf_node.bumpfee(rbfid, {"fee_rate": ECONOMICAL})
488 assert_raises_rpc_error(-4, "already bumped", rbf_node.bumpfee, rbfid, {"fee_rate": NORMAL})
489 rbf_node.bumpfee(bumped["txid"], {"fee_rate": NORMAL})
490 self.clear_mempool()
491
492
493def test_rebumping_not_replaceable(self, rbf_node, dest_address):

Callers 1

run_testMethod · 0.70

Calls 4

assert_raises_rpc_errorFunction · 0.90
infoMethod · 0.80
clear_mempoolMethod · 0.80
spend_one_inputFunction · 0.70

Tested by

no test coverage detected