Module consensus_simplex

Module consensus_simplex 

Source
Expand description

Simplex BFT consensus integration for guts-node.

This module provides the integration between the HTTP API server and the real Simplex BFT consensus engine from commonware.

§Architecture

The consensus engine runs in its own commonware runtime context, while the HTTP server runs in the main Tokio runtime. They communicate via:

  • Mempool: Transactions are submitted via the HTTP API
  • State: Finalized blocks update shared application state
  • P2P: Consensus messages are exchanged via authenticated channels

Structs§

SimplexConsensusConfig
Configuration for the Simplex BFT consensus.
SimplexConsensusHandle
Handle to a running Simplex consensus engine.

Functions§

start_simplex_consensus
Start the Simplex BFT consensus engine.