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

Function _splice

tests/test_splicing.py:135–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected