Function serve_consensus

Source
pub async fn serve_consensus(port: u16, state: ConsensusState) -> Result
Expand description

Run a turmoil consensus server.

Intended to be used as the host logic passed to turmoil::Sim::host.