Skip to content

Commit

Permalink
Merge branch 'musitdev/fix_block_timestamp_error' of github.com:movem…
Browse files Browse the repository at this point in the history
…entlabsxyz/movement into musitdev/fix_block_timestamp_error
  • Loading branch information
musitdev committed Feb 26, 2025
2 parents 98b3323 + 2fa9ac3 commit 4aa9081
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 4aa9081

Please sign in to comment.