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
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0

#![forbid(unsafe_code)]

//! Consensus for the Libra Core blockchain
//!
//! The consensus protocol implemented is LibraBFT (based on
//! [HotStuff](https://arxiv.org/pdf/1803.05069.pdf)).

#![cfg_attr(not(feature = "fuzzing"), deny(missing_docs))]
#![cfg_attr(feature = "fuzzing", allow(dead_code))]
#![recursion_limit = "512"]

mod block_storage;
mod consensusdb;
mod counters;
mod epoch_manager;
mod error;
mod liveness;
mod logging;
mod metrics_safety_rules;
mod network;
#[cfg(test)]
mod network_tests;
mod pending_votes;
mod persistent_liveness_storage;
mod round_manager;
mod state_computer;
mod state_replication;
#[cfg(any(test, feature = "fuzzing"))]
mod test_utils;
#[cfg(test)]
mod twins;
mod txn_manager;
mod util;

/// LibraBFT implementation
pub mod consensus_provider;
/// LibraNet interface.
pub mod network_interface;

#[cfg(feature = "fuzzing")]
pub use round_manager::round_manager_fuzzing;
pub use util::config_subscription::gen_consensus_reconfig_subscription;