Skip to content

Commit

Permalink
doc: clarify l1_batch_number
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapoz committed Jul 29, 2024
1 parent 1009243 commit 4c4211d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/processor/snapshot/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ impl SnapshotExporter {
U64::from(0)
});
let mut header = SnapshotHeader {
// NOTE: `l1_batch_number` in the snapshot header actually refers
// to the ZKsync batch number and not the Ethereum batch height we
// store in the snapshot database. In the snapshot database this
// field is referred to as `l2_batch_number`.
l1_batch_number: l2_batch_number.as_u64(),
miniblock_number: l2_block_number.as_u64(),
..Default::default()
Expand Down

0 comments on commit 4c4211d

Please sign in to comment.