Skip to content

Commit

Permalink
add a better comment for the block timestamp init code
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Feb 26, 2025
1 parent b688dba commit 2fa9ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol-units/da/movement/protocol/util/src/blob/ir/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ where
}

pub fn now(blob: Vec<u8>) -> Self {
// mark the timestamp as now in milliseconds
// Define the block timestamp value. Aptos framework need a timestamp in micro sec.
// Changing this value will generate blocks that can't be executed.
let timestamp = chrono::Utc::now().timestamp_micros() as u64;

Self::new(blob, timestamp)
Expand Down

0 comments on commit 2fa9ac3

Please sign in to comment.