Skip to content

Commit

Permalink
Make timestamp more realistic
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Oct 18, 2024
1 parent 9e21be7 commit 9c10812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/multivm/src/versions/testonly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ pub(super) fn default_system_env() -> SystemEnv {
}

pub(super) fn default_l1_batch(number: L1BatchNumber) -> L1BatchEnv {
let timestamp = number.0.into();
// Add a bias to the timestamp to make it more realistic / "random".
let timestamp = 1_700_000_000 + u64::from(number.0);
L1BatchEnv {
previous_batch_hash: None,
number,
Expand Down

0 comments on commit 9c10812

Please sign in to comment.