mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-02-22 16:09:58 -05:00
Updated method names
This commit is contained in:
parent
7783f2eddf
commit
c816b2cfd4
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user