restore Nodeconfiguration.read_known_nodes

pull/539/head
Kieran Prasch 2018-11-09 08:14:44 -08:00
parent 67c9996ffb
commit 27f3907a9a
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
2 changed files with 5 additions and 1 deletions

View File

@ -682,4 +682,4 @@ class NucypherKeyring:
for rule, failure_message in rules:
if not rule:
failures.append(failure_message)
return True if not failures else failures
return failures

View File

@ -378,6 +378,10 @@ class NodeConfiguration:
self.validate(config_root=self.config_root, no_registry=no_registry or self.federated_only)
return self.config_root
def read_known_nodes(self):
self.known_nodes.update(self.node_storage.all(federated_only=self.federated_only))
return self.known_nodes
def read_keyring(self, *args, **kwargs):
if self.checksum_address is None:
raise self.ConfigurationError("No account specified to unlock keyring")