Skip to content

Commit df1c282

Browse files
committed
fix: update replay mode to refrain from starting server during tx replaying
1 parent dd18990 commit df1c282

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/cli/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ async fn main() -> anyhow::Result<()> {
279279
if !transactions_to_replay.is_empty() {
280280
node.apply_txs(transactions_to_replay, config.max_transactions)
281281
.await?;
282+
283+
// If we are in replay mode, we don't start the server
284+
return Ok(());
282285
}
283286

284287
// TODO: Consider moving to `InMemoryNodeInner::init`

0 commit comments

Comments
 (0)