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

Function in_the_window

tests/test_opening.py:1723–1726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1721 # scid, so this stays a valid trigger once the scid is no longer published
1722 # ahead of the funding outpoint.
1723 def in_the_window():
1724 return (l2.rpc.getinfo()['blockheight'] == mined_height
1725 and only_one(l2.rpc.listpeerchannels()['channels'])['state']
1726 == 'DUALOPEND_AWAITING_LOCKIN')
1727
1728 wait_for(in_the_window)
1729 # We really are mid-catch-up, not done.

Callers

nothing calls this directly

Calls 3

only_oneFunction · 0.90
listpeerchannelsMethod · 0.80
getinfoMethod · 0.45

Tested by

no test coverage detected