mirror of
https://github.com/markqvist/LXMF.git
synced 2025-11-20 07:22:30 -05:00
Also receive PN path response announces, but only update peering data on live announces
This commit is contained in:
parent
3f91e44a6d
commit
0f2d3b06c2
1 changed files with 43 additions and 42 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue