From c816b2cfd452be1a16cbc50c27ba693fb892d9fd Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 17 May 2021 00:07:11 +0200 Subject: [PATCH] Updated method names --- nomadnet/Conversation.py | 2 +- nomadnet/NomadNetworkApp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomadnet/Conversation.py b/nomadnet/Conversation.py index 86639de..fc6a09e 100644 --- a/nomadnet/Conversation.py +++ b/nomadnet/Conversation.py @@ -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) diff --git a/nomadnet/NomadNetworkApp.py b/nomadnet/NomadNetworkApp.py index 422d1bf..4158091 100644 --- a/nomadnet/NomadNetworkApp.py +++ b/nomadnet/NomadNetworkApp.py @@ -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)