Skip to content

Commit

Permalink
setting generated_at attribute of exported snapshot header (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbar authored Apr 23, 2024
1 parent bd03ab6 commit a8c46eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/processor/snapshot/exporter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::path::{Path, PathBuf};

use chrono::offset::Utc;
use ethers::types::U256;
use eyre::Result;
use state_reconstruct_storage::{
Expand Down Expand Up @@ -39,6 +40,7 @@ impl SnapshotExporter {
let l1_batch_number = self.database.get_latest_l1_batch_number()?;
let mut header = SnapshotHeader {
l1_batch_number,
generated_at: Utc::now(),
..Default::default()
};

Expand Down

0 comments on commit a8c46eb

Please sign in to comment.