add comment for packet_size

This commit is contained in:
Youngjoon Lee 2024-07-11 10:05:20 +09:00
parent a25b3942ff
commit 78d4ab9ba2
No known key found for this signature in database
GPG Key ID: B4253AFBA618BF4D

View File

@ -32,6 +32,8 @@ class Node:
mixgossip_channel: GossipChannel
reconstructor: MessageReconstructor
broadcast_channel: BroadcastChannel
# The actual packet size is calculated based on the max length of mix path by Sphinx encoding
# when the node is initialized, so that it can be used to generate noise packets.
packet_size: int
def __init__(self, config: NodeConfig, global_config: GlobalConfig):