1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![warn(
future_incompatible,
nonstandard_style,
rust_2018_idioms,
rust_2021_compatibility
)]
pub mod bullshark;
pub mod consensus;
pub mod dag;
pub mod metrics;
pub mod tusk;
mod utils;
pub use crate::consensus::Consensus;
use serde::{Deserialize, Serialize};
use types::{Certificate, SequenceNumber};
pub const DEFAULT_CHANNEL_SIZE: usize = 1_000;
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct ConsensusOutput {
pub certificate: Certificate,
pub consensus_index: SequenceNumber,
}