Added ability to configure node stamp value and link cost

This commit is contained in:
Mark Qvist 2026-11-17 16:16:11 +01:00
parent 9dd3d861ea
commit c47f9e4d97
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View file

@ -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()