Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bin/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fn main() {

// Clone xlayer_args early to avoid partial move issues
let xlayer_args = args.xlayer_args.clone();
let datadir = builder.config().datadir().clone();

let legacy_config = LegacyRpcRouterConfig {
enabled: xlayer_args.legacy.legacy_rpc_url.is_some(),
Expand Down Expand Up @@ -130,6 +131,7 @@ fn main() {
flashblock_rx,
args.xlayer_args.builder.flashblocks,
args.rollup_args.flashblocks_url.is_some(),
datadir,
)?;
service.spawn();
info!(target: "reth::cli", "xlayer flashblocks service initialized");
Expand Down
8 changes: 8 additions & 0 deletions crates/builder/src/args/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ pub struct FlashblocksArgs {
default_value = "256"
)]
pub ws_subscriber_limit: Option<u16>,

/// Enable replay from the persistence file on startup
#[arg(
long = "flashblocks.replay-from-persistence-file",
env = "FLASHBLOCKS_REPLAY_FROM_PERSISTENCE_FILE",
default_value = "false"
)]
pub replay_from_persistence_file: bool,
}

impl Default for FlashblocksArgs {
Expand Down
Loading