fuel_core_consensus_module/
lib.rs1#![deny(clippy::arithmetic_side_effects)]
3#![deny(clippy::cast_possible_truncation)]
4#![deny(unused_crate_dependencies)]
5#![deny(missing_docs)]
6#![deny(warnings)]
7
8use core::time::Duration;
9use fuel_core_types::blockchain::primitives::DaBlockHeight;
10
11pub mod block_verifier;
12
13#[derive(Clone, Debug)]
15pub struct RelayerConsensusConfig {
16 pub max_da_lag: DaBlockHeight,
19 pub max_wait_time: Duration,
21}
22
23impl Default for RelayerConsensusConfig {
24 fn default() -> Self {
25 Self {
26 max_da_lag: 10u64.into(),
27 max_wait_time: Duration::from_secs(30),
28 }
29 }
30}