Re-exports§
pub use snarkos_node_bft_events as events;pub use snarkos_node_bft_ledger_service as ledger_service;pub use snarkos_node_bft_storage_service as storage_service;
Modules§
Macros§
- spawn_
blocking - A helper macro to spawn a blocking task.
Structs§
- BFT
- Gateway
- The gateway maintains connections to other validators. For connections with clients and provers, the Router logic is used.
- Inner
Gateway - Primary
- The primary logic of a node. AleoBFT adopts a primary-worker architecture as described in the Narwhal and Tusk paper (Section 4.2).
- Sync
- Block synchronization logic for validators.
- Worker
- A worker’s main role is maintaining a queue of verified (“ready”) transmissions, which will eventually be fetched by the primary when the primary generates a new batch.
Constants§
- CONTEXT
- MAX_
BATCH_ DELAY_ IN_ MS - The maximum number of milliseconds to wait before proposing a batch.
- MAX_
FETCH_ TIMEOUT_ IN_ MS - The maximum number of milliseconds to wait before timing out on a fetch.
- MAX_
LEADER_ CERTIFICATE_ DELAY_ IN_ SECS - The maximum number of seconds allowed for the leader to send their certificate.
- MAX_
TIMESTAMP_ DELTA_ IN_ SECS - The maximum number of seconds before the timestamp is considered expired.
- MAX_
VALIDATORS_ TO_ SEND - The maximum number of validators to send in a validators response event.
- MAX_
WORKERS - The maximum number of workers that can be spawned.
- MEMORY_
POOL_ PORT - The port on which the memory pool listens for incoming connections.
- MIN_
BATCH_ DELAY_ IN_ SECS - The minimum number of seconds to wait before proposing a batch.
- PRIMARY_
PING_ IN_ MS - The interval at which each primary broadcasts a ping to every other node.
Note: If this is updated, be sure to update
MAX_BLOCKS_BEHINDto correspond properly. - WORKER_
PING_ IN_ MS - The interval at which each worker broadcasts a ping to every other node.
Traits§
- Transport
- Part of the Gateway API that deals with networking. This is a separate trait to allow for easier testing/mocking.
Type Aliases§
- Proposed
Batch - A helper type for an optional proposed batch.