Also receive PN path response announces, but only update peering data on live announces

This commit is contained in:
Mark Qvist 2025-10-30 15:18:09 +01:00
parent 3f91e44a6d
commit 0f2d3b06c2

View file

@ -35,10 +35,11 @@ class LXMFDeliveryAnnounceHandler:
class LXMFPropagationAnnounceHandler:
def __init__(self, lxmrouter):
self.aspect_filter = APP_NAME+".propagation"
self.receive_path_responses = False
self.receive_path_responses = True
self.lxmrouter = lxmrouter
def received_announce(self, destination_hash, announced_identity, app_data):
def received_announce(self, destination_hash, announced_identity, app_data, announce_packet_hash, is_path_response):
if not is_path_response:
try:
if type(app_data) == bytes:
if self.lxmrouter.propagation_node: