mirror of
https://github.com/StijnBTC/Ringtools.git
synced 2025-02-28 07:54:09 +01:00
check if channel_id is 18 chars
This commit is contained in:
parent
5ec0c0699b
commit
c0af6d0ec8
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ class Status:
|
|||
def once(self):
|
||||
channels = self.read_file(self.channels_file)
|
||||
for channelID in channels:
|
||||
if len(channelID) != 18:
|
||||
continue
|
||||
response = self.lnd.get_edge(int(channelID))
|
||||
node1 = self.lnd.get_node(response.node1_pub)
|
||||
node2 = self.lnd.get_node(response.node2_pub)
|
||||
|
|
Loading…
Add table
Reference in a new issue