Skip to content

Commit

Permalink
use saturating sub
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Dec 19, 2024
1 parent c67eb25 commit c0392ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/da_clients/src/eigen/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl Verifier {
.as_u64();

let depth = self.cfg.settlement_layer_confirmation_depth.saturating_sub(1);
let block_to_return = latest - depth as u64;
let block_to_return = latest.saturating_sub(depth as u64);
Ok(block_to_return)
}

Expand Down

0 comments on commit c0392ee

Please sign in to comment.