Improved auto-peering on inbound PN sync. Added support for persisting and loading transient message stamp status. Implemented getting transient message stamp value.

This commit is contained in:
Mark Qvist 2025-10-30 21:19:38 +01:00
commit c84aea745a
4 changed files with 89 additions and 69 deletions

View file

@ -149,7 +149,8 @@ def stamp_cost_from_app_data(app_data=None):
def pn_announce_data_is_valid(data):
try:
if type(data) == bytes: data = msgpack.unpackb(data)
if type(data) != bytes: return False
else: data = msgpack.unpackb(data)
if len(data) < 7: raise ValueError("Invalid announce data: Insufficient peer data")
else:
try: int(data[1])