-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlib.rs
More file actions
95 lines (86 loc) · 2.78 KB
/
Copy pathlib.rs
File metadata and controls
95 lines (86 loc) · 2.78 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//! Consensus Layer scaffolding
//!
//! This crate hosts the Malachite integration surface area. Malachite
//! dependencies are optional and gated behind the `malachite` feature so
//! existing builds remain unaffected while we wire up the consensus layer.
pub mod config;
pub mod error;
pub mod types;
pub use error::ConsensusError;
#[cfg(feature = "malachite")]
pub mod codec;
#[cfg(feature = "malachite")]
pub mod context;
#[cfg(feature = "malachite")]
pub mod engine;
#[cfg(feature = "malachite")]
pub mod host;
#[cfg(feature = "malachite")]
pub mod network;
#[cfg(feature = "malachite")]
pub mod proposal;
#[cfg(feature = "malachite")]
pub mod signing;
#[cfg(feature = "malachite")]
pub mod staking_bridge;
#[cfg(feature = "malachite")]
pub mod sync;
#[cfg(feature = "malachite")]
pub mod validator_set;
#[cfg(feature = "malachite")]
pub mod validator_set_manager;
#[cfg(feature = "malachite")]
pub mod vote;
#[cfg(feature = "malachite")]
pub mod wal;
#[cfg(feature = "malachite")]
pub mod proposer_selector;
#[cfg(feature = "malachite")]
pub mod execution_handler;
pub use config::ConsensusConfig;
pub use types::{ConsensusHeight, ConsensusRound, ConsensusValue};
#[cfg(feature = "malachite")]
pub use codec::ConsensusCodec;
#[cfg(feature = "malachite")]
pub use context::CipherBftContext;
#[cfg(feature = "malachite")]
pub use engine::{
create_context, create_engine_config, default_consensus_params,
default_engine_config_single_part, EngineHandles, MalachiteEngineBuilder,
};
#[cfg(feature = "malachite")]
pub use host::{
spawn_host, spawn_host_actor, ChannelDecisionHandler, CipherBftHost, DecisionHandler,
HostConfig, ValueBuilder,
};
#[cfg(feature = "malachite")]
pub use informalsystems_malachitebft_sync::Config as SyncConfig;
#[cfg(feature = "malachite")]
pub use network::spawn_network;
#[cfg(feature = "malachite")]
pub use proposal::{CutProposal, CutProposalPart};
#[cfg(feature = "malachite")]
pub use signing::{ConsensusSigner, ConsensusSigningProvider};
#[cfg(feature = "malachite")]
pub use staking_bridge::{
ConsensusValidatorProvider, EpochTransitionTrigger, ValidatorSetEvent, ValidatorSetObserver,
};
#[cfg(feature = "malachite")]
pub use sync::spawn_sync;
#[cfg(feature = "malachite")]
pub use validator_set::{ConsensusAddress, ConsensusValidator, ConsensusValidatorSet};
#[cfg(feature = "malachite")]
pub use validator_set_manager::{
EpochConfig, EpochValidatorSet, InMemoryValidatorSetStorage, ValidatorSetManager,
ValidatorSetStorageProvider,
};
#[cfg(feature = "malachite")]
pub use vote::ConsensusVote;
#[cfg(feature = "malachite")]
pub use wal::spawn_wal;
#[cfg(feature = "malachite")]
pub use proposer_selector::ProposerSelector;
#[cfg(feature = "malachite")]
pub use execution_handler::{
ExecutingDecisionHandler, ExecutionCallback, NoOpReceiptStore, ReceiptStore,
};