check if channel_id is 18 chars

This commit is contained in:
StijnBTC 2021-08-10 22:47:34 +02:00
parent 5ec0c0699b
commit c0af6d0ec8
No known key found for this signature in database
GPG key ID: 39E34E7930C68C96

View file

@ -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)