Updated method names

This commit is contained in:
Mark Qvist 2021-05-17 00:07:11 +02:00
parent 7783f2eddf
commit c816b2cfd4
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class Conversation:
@staticmethod
def query_for_peer(source_hash):
try:
RNS.Transport.requestPath(bytes.fromhex(source_hash))
RNS.Transport.request_path(bytes.fromhex(source_hash))
except Exception as e:
RNS.log("Error while querying network for peer identity. The contained exception was: "+str(e), RNS.LOG_ERROR)

View File

@ -98,7 +98,7 @@ class NomadNetworkApp:
try:
RNS.log("No Primary Identity file found, creating new...")
self.identity = RNS.Identity()
self.identity.save(self.identitypath)
self.identity.to_file(self.identitypath)
RNS.log("Created new Primary Identity %s" % (str(self.identity)))
except Exception as e:
RNS.log("Could not create and save a new Primary Identity", RNS.LOG_ERROR)