Skip to content

Commit

Permalink
fix(agent): fix height::reset not actually starting from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshiest committed Apr 7, 2024
1 parent 9c06e9b commit 026224a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/snops-agent/src/reconcile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ pub async fn load_ledger(
error!("failed to remove old ledger: {err}");
}
}
}

// A reset height will not require untarring the ledger
if new_env {
// ensure the storage directory exists
tokio::fs::create_dir_all(&ledger_dir)
.await
Expand Down

0 comments on commit 026224a

Please sign in to comment.