check if channelid is numeric

This commit is contained in:
StijnBTC 2021-08-10 23:04:17 +02:00
parent c0af6d0ec8
commit 72fd6c5dea
No known key found for this signature in database
GPG key ID: 39E34E7930C68C96

View file

@ -38,6 +38,9 @@ class Status:
for channelID in channels:
if len(channelID) != 18:
continue
if not channelID.isnumeric():
continue
response = self.lnd.get_edge(int(channelID))
node1 = self.lnd.get_node(response.node1_pub)
node2 = self.lnd.get_node(response.node2_pub)