mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 08:34:18 +01:00
skip channels that are not (yet) locked in
This commit is contained in:
@@ -74,8 +74,9 @@ def get_peer_id_for_scid(plugin: Plugin, scid: str):
|
||||
def get_local_channel_for_scid(plugin: Plugin, scid: str):
|
||||
for peer in plugin.peers:
|
||||
for ch in peer['channels']:
|
||||
if ch['short_channel_id'] == scid:
|
||||
return ch
|
||||
if 'short_channel_id' in ch:
|
||||
if ch['short_channel_id'] == scid:
|
||||
return ch
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user