Skip to content

Commit

Permalink
fix: refrain from starting server during tx replay (#588)
Browse files Browse the repository at this point in the history
fix: update replay mode to refrain from starting server during tx replaying
  • Loading branch information
dutterbutter authored Feb 14, 2025
1 parent 9774a3d commit 6cb0925
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ async fn main() -> anyhow::Result<()> {
if !transactions_to_replay.is_empty() {
node.apply_txs(transactions_to_replay, config.max_transactions)
.await?;

// If we are in replay mode, we don't start the server
return Ok(());
}

// TODO: Consider moving to `InMemoryNodeInner::init`
Expand Down

0 comments on commit 6cb0925

Please sign in to comment.