mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-10 17:19:15 +01:00
pyln-testing: when waiting for active channel, make sure remote has sent fee info.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c3f33eb6dd
commit
1d9a6d1efa
1 changed files with 1 additions and 1 deletions
|
@ -1132,7 +1132,7 @@ class LightningNode(object):
|
|||
def is_local_channel_active(self, scid):
|
||||
"""Is the local channel @scid usable?"""
|
||||
channels = self.rpc.listpeerchannels()['channels']
|
||||
return [c['state'] in ('CHANNELD_NORMAL', 'CHANNELD_AWAITING_SPLICE') for c in channels if c.get('short_channel_id') == scid] == [True]
|
||||
return [c['state'] in ('CHANNELD_NORMAL', 'CHANNELD_AWAITING_SPLICE') and 'remote' in c.get('updates', {}) for c in channels if c.get('short_channel_id') == scid] == [True]
|
||||
|
||||
def wait_local_channel_active(self, scid):
|
||||
wait_for(lambda: self.is_local_channel_active(scid))
|
||||
|
|
Loading…
Add table
Reference in a new issue