mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-02-24 23:23:38 +00:00
update comment
This commit is contained in:
parent
4aa1ee06fb
commit
d3e8b0223e
@ -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
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user