nomos-pocs/da/subnets/network/constants.py
gusto 97c3076e57
DA: Feasability test for large number of udp connections (#5)
* Client and server setup for testing increasing number of connections over udp

* Add results and conclusions

* Move udp poc to the same directory as network poc

* Add readme for subnets pocs
2024-07-22 21:15:48 +03:00

22 lines
440 B
Python

from libp2p.typing import TProtocol
"""
Some constants for use throught the poc
"""
PROTOCOL_ID = TProtocol("/nomosda/1.0.0")
MAX_READ_LEN = 2**32 - 1
HASH_LENGTH = 256
NODE_PORT_BASE = 7560
EXECUTOR_PORT = 8766
# These can be overridden with cli params
DEFAULT_DATA_SIZE = 1024
DEFAULT_SUBNETS = 256
DEFAULT_NODES = 32
DEFAULT_SAMPLE_THRESHOLD = 12
# how many nodes per subnet minimum
DEFAULT_REPLICATION_FACTOR = 4
DEBUG = False