massa_consensus_exports/
lib.rs

1// Copyright (c) 2022 MASSA LABS <info@massa.net>
2//! Definition and exports of the graph types and errors.
3
4mod channels;
5mod controller_trait;
6mod settings;
7
8pub mod block_graph_export;
9pub mod block_status;
10pub mod bootstrapable_graph;
11pub mod error;
12pub mod events;
13pub mod export_active_block;
14
15pub use channels::{ConsensusBroadcasts, ConsensusChannels};
16pub use controller_trait::{ConsensusController, ConsensusManager};
17pub use settings::ConsensusConfig;
18
19#[cfg(feature = "test-exports")]
20pub use controller_trait::{MockConsensusController, MockConsensusControllerWrapper};
21
22/// Test utils
23#[cfg(feature = "test-exports")]
24/// Exports related to tests as Mocks and configurations
25pub mod test_exports;