Skip to content

Commit

Permalink
Fix compile after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesa-telos committed Sep 13, 2024
1 parent 3bfa79d commit 326f395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl ConsensusClient {
}
}

fn is_in_start_stop_range(&self, num: u32) -> bool {
pub fn is_in_start_stop_range(&self, num: u32) -> bool {
match (self.config.evm_start_block, self.config.evm_stop_block) {
(start_block, Some(stop_block)) => start_block <= num && num <= stop_block,
(start_block, None) => start_block <= num,
Expand Down
2 changes: 1 addition & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async fn build_consensus_client(

if let Some(last_checked) = last_checked {
if client.is_in_start_stop_range(last_checked.number + 1) {
config.start_block = last_checked.number + 1;
config.evm_start_block = last_checked.number + 1;
config.prev_hash = last_checked.hash
}
}
Expand Down

0 comments on commit 326f395

Please sign in to comment.