Skip to content

Commit 3383e0e

Browse files
committed
Restore sequencer file
1 parent 4a6d30b commit 3383e0e

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ mod docker;
66
pub mod framework;
77
mod log_provider;
88
pub mod node;
9+
mod sequencer;
910
pub mod test_case;
1011
pub mod traits;
1112
mod utils;

src/node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ use tokio::{
1919
};
2020
use tracing::{debug, info, trace};
2121

22+
pub use crate::sequencer::Sequencer;
2223
use crate::{
2324
client::Client,
2425
config::{
2526
BatchProverConfig, BitcoinConfig, DockerConfig, EmptyConfig, FullL2NodeConfig,
26-
LightClientProverConfig, SequencerConfig,
27+
LightClientProverConfig,
2728
},
2829
docker::DockerEnv,
2930
log_provider::LogPathProvider,
@@ -65,7 +66,6 @@ impl fmt::Display for NodeKind {
6566
}
6667
}
6768

68-
pub type Sequencer = Node<SequencerConfig>;
6969
pub type FullNode = Node<EmptyConfig>;
7070
pub type LightClientProver = Node<LightClientProverConfig>;
7171
pub type BatchProver = Node<BatchProverConfig>;

src/sequencer.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use crate::{config::SequencerConfig, node::Node};
2+
3+
pub type Sequencer = Node<SequencerConfig>;
4+
5+
impl Sequencer {
6+
pub fn min_soft_confirmations_per_commitment(&self) -> u64 {
7+
self.config.node.min_soft_confirmations_per_commitment
8+
}
9+
}

0 commit comments

Comments
 (0)