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

Function _splice

tests/test_splicing.py:138–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 # l2 refuses on receipt of splice_init, so the splice_ack l1 is waiting
137 # for never arrives: run it in a daemon thread so the test can proceed.
138 def _splice():
139 try:
140 # force_feerate isn't in the pyln-client wrapper, so call directly.
141 l1.rpc.call('splice_init',
142 {'channel_id': chan_id,
143 'relative_amount': 100000,
144 'initialpsbt': funds_result['psbt'],
145 # param_feerate reads a bare number as perkb, and
146 # the schema only allows a bare number here:
147 # 800000perkb == 200000perkw.
148 'feerate_per_kw': 800000,
149 'force_feerate': True})
150 except Exception:
151 pass
152
153 threading.Thread(target=_splice, daemon=True).start()
154

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected