refactor code to only call local node when necessary; fix tests

This commit is contained in:
Mike Kinney
2022-01-10 16:20:11 -08:00
parent 8ca692a26e
commit 52db617b06
5 changed files with 81 additions and 111 deletions

View File

@@ -257,6 +257,7 @@ class Node:
p = admin_pb2.AdminMessage()
p.get_radio_request = True
# TODO: should we check that localNode has an 'admin' channel?
# Show progress message for super slow operations
if self != self.iface.localNode:
print("Requesting preferences from remote node.")