mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pyln-testing: Have LightningNode.fund_channel poll
This commit is contained in:
committed by
Rusty Russell
parent
0431a29a26
commit
437c411769
@@ -759,18 +759,9 @@ class LightningNode(object):
|
|||||||
get_tx_p2wsh_outnum(self.bitcoin, tx, amount))
|
get_tx_p2wsh_outnum(self.bitcoin, tx, amount))
|
||||||
|
|
||||||
if wait_for_active:
|
if wait_for_active:
|
||||||
# We wait until gossipd sees both local updates, as well as status NORMAL,
|
self.wait_channel_active(scid)
|
||||||
# so it can definitely route through.
|
l2.wait_channel_active(scid)
|
||||||
self.daemon.wait_for_logs([r'update for channel {}/0 now ACTIVE'
|
|
||||||
.format(scid),
|
|
||||||
r'update for channel {}/1 now ACTIVE'
|
|
||||||
.format(scid),
|
|
||||||
'to CHANNELD_NORMAL'])
|
|
||||||
l2.daemon.wait_for_logs([r'update for channel {}/0 now ACTIVE'
|
|
||||||
.format(scid),
|
|
||||||
r'update for channel {}/1 now ACTIVE'
|
|
||||||
.format(scid),
|
|
||||||
'to CHANNELD_NORMAL'])
|
|
||||||
return scid
|
return scid
|
||||||
|
|
||||||
def subd_pid(self, subd, peerid=None):
|
def subd_pid(self, subd, peerid=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user