Module bitcoin::network::constants
[−]
[src]
Network constants
This module provides various constants relating to the Bitcoin network protocol, such as protocol versioning and magic header bytes.
Enums
Network |
The cryptocurrency to act on |
Constants
PROTOCOL_VERSION |
Version of the protocol as appearing in network message headers |
SERVICES |
Bitfield of services provided by this node |
USER_AGENT |
User agent as it appears in the version message |
Functions
magic |
Return the network magic bytes, which should be encoded little-endian at the start of every message |