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

Function check_billboard

tests/test_closing.py:3591–3597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3589 'ONCHAIN:All outputs resolved: waiting 99 more blocks before forgetting channel'])
3590
3591 def check_billboard():
3592 billboard = only_one(l2.rpc.listpeerchannels(l1.info['id'])['channels'])['status']
3593 return (
3594 len(billboard) == 2
3595 and billboard[0] == 'ONCHAIN:Tracking our own unilateral close'
3596 and re.fullmatch(r'ONCHAIN:.* outputs unresolved: in 4 blocks will spend DELAYED_OUTPUT_TO_US \(.*:.*\) using OUR_DELAYED_RETURN_TO_WALLET', billboard[1])
3597 )
3598 wait_for(check_billboard)
3599
3600 # Now, mine 4 blocks so it sends out the spending tx.

Callers

nothing calls this directly

Calls 2

only_oneFunction · 0.90
listpeerchannelsMethod · 0.80

Tested by

no test coverage detected