mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-06-07 05:52:51 -04:00
Updated method names
This commit is contained in:
parent
7783f2eddf
commit
c816b2cfd4
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class Conversation:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def query_for_peer(source_hash):
|
def query_for_peer(source_hash):
|
||||||
try:
|
try:
|
||||||
RNS.Transport.requestPath(bytes.fromhex(source_hash))
|
RNS.Transport.request_path(bytes.fromhex(source_hash))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Error while querying network for peer identity. The contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Error while querying network for peer identity. The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class NomadNetworkApp:
|
||||||
try:
|
try:
|
||||||
RNS.log("No Primary Identity file found, creating new...")
|
RNS.log("No Primary Identity file found, creating new...")
|
||||||
self.identity = RNS.Identity()
|
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)))
|
RNS.log("Created new Primary Identity %s" % (str(self.identity)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Could not create and save a new Primary Identity", RNS.LOG_ERROR)
|
RNS.log("Could not create and save a new Primary Identity", RNS.LOG_ERROR)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue