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

Function do_close

tests/test_opening.py:3933–3937  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3931 # close() blocks until the channel closes, which never happens here (l1
3932 # disconnects after WIRE_SHUTDOWN and won't reconnect), so fire and forget.
3933 def do_close():
3934 try:
3935 l1.rpc.close(l2.info['id'], destination=close_addr)
3936 except RpcError:
3937 pass
3938 threading.Thread(target=do_close, daemon=True).start()
3939
3940 # l2 receives the shutdown and persists the script. Don't wait on

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected