Skip to content

Commit

Permalink
[qs] remove assertion on timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Li authored and Zekun Li committed Nov 18, 2024
1 parent 034a529 commit 7e82d94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions consensus/src/quorum_store/batch_proof_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,11 @@ impl BatchProofQueue {
}

pub(crate) fn handle_updated_block_timestamp(&mut self, block_timestamp: u64) {
// tolerate asynchronous notification
if self.latest_block_timestamp > block_timestamp {
return;
}
let start = Instant::now();
assert!(
self.latest_block_timestamp <= block_timestamp,
"Decreasing block timestamp"
);
self.latest_block_timestamp = block_timestamp;
if let Some(time_lag) = aptos_infallible::duration_since_epoch()
.checked_sub(Duration::from_micros(block_timestamp))
Expand Down

0 comments on commit 7e82d94

Please sign in to comment.