c72dfe1dd3
Done - Add factories using factory-boy - Modify fixtures and tests to use factories - Modify tests to use fixtures and factories - Clean up
19 lines
381 B
Python
19 lines
381 B
Python
from typing import NamedTuple
|
|
|
|
|
|
FLOODSUB_PROTOCOL_ID = "/floodsub/1.0.0"
|
|
GOSSIPSUB_PROTOCOL_ID = "/gossipsub/1.0.0"
|
|
|
|
|
|
class GossipsubParams(NamedTuple):
|
|
degree: int = 10
|
|
degree_low: int = 9
|
|
degree_high: int = 11
|
|
time_to_live: int = 30
|
|
gossip_window: int = 3
|
|
gossip_history: int = 5
|
|
heartbeat_interval: float = 0.5
|
|
|
|
|
|
GOSSIPSUB_PARAMS = GossipsubParams()
|