Added handling for receiving a link proof after the link had timed out and been closed, but before it having been purged from active links table

This commit is contained in:
Mark Qvist 2024-10-05 18:43:56 +02:00
parent 0f0f459321
commit bb8b8b4f81

View File

@ -453,7 +453,7 @@ class PacketReceipt:
# This is an explicit proof
proof_hash = proof[:RNS.Identity.HASHLENGTH//8]
signature = proof[RNS.Identity.HASHLENGTH//8:RNS.Identity.HASHLENGTH//8+RNS.Identity.SIGLENGTH//8]
if proof_hash == self.hash:
if proof_hash == self.hash and hasattr(self.destination, "identity") and self.destination.identity != None:
proof_valid = self.destination.identity.validate(signature, self.hash)
if proof_valid:
self.status = PacketReceipt.DELIVERED