MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fee_bump_splice

Function fee_bump_splice

tests/test_splicing.py:303–311  ·  view source on GitHub ↗
(fee)

Source from the content-addressed store, hash-verified

301 " FROM htlc_sigs;")
302
303 def fee_bump_splice(fee):
304 # No inputs and no extra outputs: the new funding output is the only
305 # output, so every candidate puts it at index 0.
306 result = l1.rpc.splice_init(chan_id, -fee)
307 result = l1.rpc.splice_update(chan_id, result['psbt'])
308 assert result['commitments_secured'] is False
309 result = l1.rpc.splice_update(chan_id, result['psbt'])
310 assert result['commitments_secured'] is True
311 return l1.rpc.splice_signed(chan_id, result['psbt'])
312
313 first = fee_bump_splice(5801)
314 l1.daemon.wait_for_log(r'CHANNELD_NORMAL to CHANNELD_AWAITING_SPLICE')

Callers 1

Calls 3

splice_initMethod · 0.45
splice_updateMethod · 0.45
splice_signedMethod · 0.45

Tested by

no test coverage detected