Skip to content

Commit

Permalink
doc: update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapoz committed Jul 30, 2024
1 parent 5d7de02 commit 1d13b19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/processor/snapshot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Processor for SnapshotBuilder {

let _ = self
.database
.set_latest_l2_block_number(block.l1_batch_number);
.set_latest_l1_batch_number(block.l1_batch_number);

if let Some(number) = block.l1_block_number {
let _ = self.database.set_latest_l1_block_number(number);
Expand Down
2 changes: 1 addition & 1 deletion state-reconstruct-fetcher/src/l1_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ pub async fn parse_calldata(

let abi::Token::Uint(_previous_l1_batch_number) = stored_block_info[0].clone() else {
return Err(ParseError::InvalidStoredBlockInfo(
"cannot parse previous L1 block number".to_string(),
"cannot parse previous L1 batch number".to_string(),
));
};

Expand Down
4 changes: 2 additions & 2 deletions state-reconstruct-fetcher/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ pub const METRICS_TRACING_TARGET: &str = "metrics";
pub struct L1Metrics {
/// The first L1 block fetched.
pub first_l1_block_num: u64,
/// The first L2 batch fetched.
/// The first L1 batch fetched.
pub first_l1_batch_num: u64,

/// The latest L1 block fetched.
pub latest_l1_block_num: u64,
/// The latest L2 block fetched.
/// The latest L1 batch fetched.
pub latest_l1_batch_num: u64,

/// The first L1 block to compare against when measuring progress.
Expand Down

0 comments on commit 1d13b19

Please sign in to comment.