update comment

This commit is contained in:
Youngjoon Lee 2024-07-03 11:41:29 +09:00
parent 4aa1ee06fb
commit d3e8b0223e
No known key found for this signature in database
GPG Key ID: B4253AFBA618BF4D
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ class GlobalConfig:
@dataclass
class NodeConfig:
private_key: X25519PrivateKey
# The max number of peers a node should maintain in its p2p network
# The target number of peers a node should maintain in its p2p network
peering_degree: int
mix_path_length: int # TODO: use this when creating Sphinx packets

View File

@ -94,10 +94,10 @@ class MixGossipChannel:
def __init__(
self,
peer_degree: int,
peering_degree: int,
handler: Callable[[SphinxPacket], Awaitable[SphinxPacket | None]],
):
self.peering_degree = peer_degree
self.peering_degree = peering_degree
self.conns = []
self.handler = handler
self.msg_cache = set()