mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-04 23:25:27 -04:00
Propagation node identity lookup
This commit is contained in:
parent
fec4ef5d57
commit
cd59f31eba
1 changed files with 7 additions and 0 deletions
|
@ -367,9 +367,16 @@ class ConversationsDisplay():
|
|||
button_columns = urwid.Columns([("weight", 0.45, sync_button), ("weight", 0.1, urwid.Text("")), ("weight", 0.45, cancel_button)])
|
||||
real_sync_button.bc = button_columns
|
||||
|
||||
pn_ident = None
|
||||
if self.app.get_default_propagation_node() != None:
|
||||
pn_hash = self.app.get_default_propagation_node()
|
||||
pn_ident = RNS.Identity.recall(pn_hash)
|
||||
|
||||
if pn_ident == None:
|
||||
RNS.log("Propagation node identity is unknown, requesting from network...", RNS.LOG_DEBUG)
|
||||
RNS.Transport.request_path(pn_hash)
|
||||
|
||||
if pn_ident != None:
|
||||
node_hash = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", pn_ident)
|
||||
pn_entry = self.app.directory.find(node_hash)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue