Module version

Source
Expand description

Network versioning

Constants§

ALPHANET_ID
MAINNET_ID

Statics§

IDENTIFY_PROTOCOL_STR
Identify protocol version string for peer compatibility verification.
NETWORK_ID
Network identifier used to differentiate between different networks.
REQ_RESPONSE_VERSION_STR
The req/response protocol version

Functions§

construct_client_user_agent
Client user-agent identifier for peer recognition and routing exclusion.
construct_node_user_agent
Node user-agent identifier for peer recognition and routing table management.
get_network_id
Get the current NETWORK_ID as string.
get_network_id_str
Get the current NETWORK_ID as string.
get_truncate_version_str
set_network_id
Update the NETWORK_ID.