Skip to content

Commit

Permalink
avoids panic when checkpoints are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Oct 18, 2023
1 parent 290ccf2 commit 92def54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zebra-state/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ impl StateService {
let full_verifier_utxo_lookahead = max_checkpoint_height
- HeightDiff::try_from(checkpoint_verify_concurrency_limit)
.expect("fits in HeightDiff");
let full_verifier_utxo_lookahead =
full_verifier_utxo_lookahead.expect("unexpected negative height");
let full_verifier_utxo_lookahead = full_verifier_utxo_lookahead.unwrap_or(block::Height(0));

let non_finalized_state_queued_blocks = QueuedBlocks::default();
let pending_utxos = PendingUtxos::default();
Expand Down

0 comments on commit 92def54

Please sign in to comment.