mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-15 12:50:41 +02:00
skip channels that are not (yet) locked in
This commit is contained in:
parent
b88c927810
commit
f492affe2e
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue