mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-22 16:06:22 -05:00
Added ability to configure node stamp value and link cost
This commit is contained in:
parent
9dd3d861ea
commit
c47f9e4d97
2 changed files with 15 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ class Node:
|
|||
self.app = app
|
||||
self.identity = self.app.identity
|
||||
self.destination = RNS.Destination(self.identity, RNS.Destination.IN, RNS.Destination.SINGLE, "nomadnetwork", "node")
|
||||
self.destination.set_link_cost(self.app.node_link_cost)
|
||||
if self.app.node_stamp_value: self.destination.set_value(self.app.node_stamp_value)
|
||||
self.last_announce = time.time()
|
||||
self.last_file_refresh = time.time()
|
||||
self.last_page_refresh = time.time()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue