mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-08 15:54:20 +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):
|
def get_local_channel_for_scid(plugin: Plugin, scid: str):
|
||||||
for peer in plugin.peers:
|
for peer in plugin.peers:
|
||||||
for ch in peer['channels']:
|
for ch in peer['channels']:
|
||||||
if ch['short_channel_id'] == scid:
|
if 'short_channel_id' in ch:
|
||||||
return ch
|
if ch['short_channel_id'] == scid:
|
||||||
|
return ch
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user