Ergo Node Protocol#
Overview#
(Back to: Node Overview)
The Node Protocol section provides a comprehensive overview of the core operational aspects of the Ergo network. It covers the following key areas:
- Processing Algorithm: This section explains the algorithm used for processing Ergo modifiers. It is applicable across all security modes within the Ergo network, ensuring consistent data processing. The reference client also applies consistency checks while removing transactions from the mempool, including checks that prevent duplicate IDs in mempool indices and avoid stale state in double-spend detection.
- Validation Rules: This part outlines the consensus-critical validation rules. These rules are mandatory for every node in the Ergo network to maintain network integrity and security. They ensure that all transactions and blocks adhere to the established network standards. Extension-section validation includes size, interlink encoding, key-length, and empty-extension checks.
- P2P Protocol: The P2P Protocol section delves into the peer-to-peer protocol used in the Ergo network. It provides insights into how nodes communicate and share information, facilitating efficient data exchange within the network. Header synchronization handles missing parent headers explicitly, allowing the node to request the missing parent again and try equal or older peers after repeated failed downloads.
- Peer Management: The peer management section discusses the strategies nodes in the Ergo network employ to manage their peers. It includes information about peer discovery, connection, and disconnection, providing a clear understanding of how nodes maintain network connectivity.
For transaction authors and indexers, note that the mempool can contain dependent unconfirmed transactions. A transaction may spend a token minted by another unconfirmed transaction, so tooling should not assume every input box already exists in the confirmed UTXO set. Indexers should also avoid assuming that a token's whole minted supply appears in a single output.
By understanding these aspects, you can gain a deeper insight into how the Ergo network operates, ensuring its security and efficiency.