From f2046b2453512589df0b4b4179d2a3f789c6d2a9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 3 Apr 2025 17:36:37 +0200 Subject: [PATCH] Slots on packet --- RNS/Packet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RNS/Packet.py b/RNS/Packet.py index 14ad097..7e10a84 100755 --- a/RNS/Packet.py +++ b/RNS/Packet.py @@ -106,6 +106,11 @@ class Packet: TIMEOUT_PER_HOP = RNS.Reticulum.DEFAULT_PER_HOP_TIMEOUT + __slots__ = "hops", "header", "header_type", "packet_type", "transport_type", "context", "context_flag", "destination" + __slots__ += "transport_id", "data", "flags", "raw", "packed", "sent", "create_receipt", "receipt", "fromPacked", "MTU" + __slots__ += "sent_at", "packet_hash", "ratchet_id", "attached_interface", "receiving_interface", "rssi", "snr", "q" + __slots__ += "ciphertext", "plaintext", "destination_hash", "destination_type", "link", "map_hash" + def __init__(self, destination, data, packet_type = DATA, context = NONE, transport_type = RNS.Transport.BROADCAST, header_type = HEADER_1, transport_id = None, attached_interface = None, create_receipt = True, context_flag=FLAG_UNSET):