mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-07 22:13:09 -04:00
Fixed Resource string representation. Added emission timestamp in announce.
This commit is contained in:
parent
4ef369cdd8
commit
c0fb419fe1
3 changed files with 23 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
import base64
|
||||
import math
|
||||
import time
|
||||
import RNS
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
|
@ -146,7 +147,7 @@ class Destination:
|
|||
:param path_response: Internal flag used by :ref:`RNS.Transport<api-transport>`. Ignore.
|
||||
"""
|
||||
destination_hash = self.hash
|
||||
random_hash = RNS.Identity.get_random_hash()
|
||||
random_hash = RNS.Identity.get_random_hash()[0:5]+int(time.time()).to_bytes(5, "big")
|
||||
|
||||
if app_data == None and self.default_app_data != None:
|
||||
if isinstance(self.default_app_data, bytes):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue