Updated packet proof logic

This commit is contained in:
Mark Qvist 2024-03-26 14:55:59 +01:00
parent f6cc9fd1cf
commit 2b3fa796a1

View File

@ -980,6 +980,7 @@ class LXMRouter:
return False return False
def delivery_packet(self, data, packet): def delivery_packet(self, data, packet):
packet.prove()
try: try:
if packet.destination_type != RNS.Destination.LINK: if packet.destination_type != RNS.Destination.LINK:
lxmf_data = b"" lxmf_data = b""
@ -998,7 +999,6 @@ class LXMRouter:
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q} phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
packet.prove()
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats) self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
except Exception as e: except Exception as e: