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:
parent
a62ffa12b1
commit
c84aea745a
4 changed files with 89 additions and 69 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue