diff --git a/lndclient.py b/lndclient.py index 5033abb..0d05c78 100644 --- a/lndclient.py +++ b/lndclient.py @@ -1,5 +1,4 @@ import abc -import json from channel import Channel diff --git a/lndrestclient.py b/lndrestclient.py index 609557b..95cfaee 100644 --- a/lndrestclient.py +++ b/lndrestclient.py @@ -1,4 +1,3 @@ -import codecs import json import posixpath import time diff --git a/terminal_web.py b/terminal_web.py index 07f40db..f26a71e 100644 --- a/terminal_web.py +++ b/terminal_web.py @@ -20,12 +20,12 @@ class TerminalWeb: self.local_node = None def is_good_inbound_peer(self, remote_pubkey): - if not self.local_node or not "good_inbound_peers" in self.local_node: + if not self.local_node or "good_inbound_peers" not in self.local_node: return False return remote_pubkey in self.local_node["good_inbound_peers"] def is_good_outbound_peer(self, remote_pubkey): - if not self.local_node or not "good_outbound_peers" in self.local_node: + if not self.local_node or "good_outbound_peers" not in self.local_node: return False return remote_pubkey in self.local_node["good_outbound_peers"]