mirror of
https://github.com/StijnBTC/Ringtools.git
synced 2025-02-28 07:54:09 +01:00
check if channelid is numeric
This commit is contained in:
parent
c0af6d0ec8
commit
72fd6c5dea
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ class Status:
|
||||||
for channelID in channels:
|
for channelID in channels:
|
||||||
if len(channelID) != 18:
|
if len(channelID) != 18:
|
||||||
continue
|
continue
|
||||||
|
if not channelID.isnumeric():
|
||||||
|
continue
|
||||||
|
|
||||||
response = self.lnd.get_edge(int(channelID))
|
response = self.lnd.get_edge(int(channelID))
|
||||||
node1 = self.lnd.get_node(response.node1_pub)
|
node1 = self.lnd.get_node(response.node1_pub)
|
||||||
node2 = self.lnd.get_node(response.node2_pub)
|
node2 = self.lnd.get_node(response.node2_pub)
|
||||||
|
|
Loading…
Add table
Reference in a new issue