From 1d9a6d1efae380ff32d66a205a9218a13fbb7bab Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 7 Dec 2023 06:44:05 +1030 Subject: [PATCH] pyln-testing: when waiting for active channel, make sure remote has sent fee info. Signed-off-by: Rusty Russell --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 7f39637d2..968aea657 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -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))