From c0af6d0ec842f00ef3fbc84ed98d476b1814acdb Mon Sep 17 00:00:00 2001 From: StijnBTC Date: Tue, 10 Aug 2021 22:47:34 +0200 Subject: [PATCH] check if channel_id is 18 chars --- status.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/status.py b/status.py index 04e5ef5..1cb0ace 100644 --- a/status.py +++ b/status.py @@ -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)