Stamp cost API functions and multi-process stamp generation on Android

This commit is contained in:
Mark Qvist 2024-09-07 11:35:17 +02:00
parent 4b5e27a5e2
commit 0d76eee6cd
4 changed files with 189 additions and 49 deletions

View file

@ -39,7 +39,7 @@ r = RNS.Reticulum()
router = LXMF.LXMRouter(storagepath="./tmp1", enforce_stamps=enforce_stamps)
identity = RNS.Identity()
my_lxmf_destination = router.register_delivery_identity(identity, stamp_cost=required_stamp_cost)
my_lxmf_destination = router.register_delivery_identity(identity, display_name="Anonymous Peer", stamp_cost=required_stamp_cost)
router.register_delivery_callback(delivery_callback)
RNS.log("Ready to receive on: "+RNS.prettyhexrep(my_lxmf_destination.hash))