Skip to content

Commit

Permalink
feat(simulation): fix calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed May 23, 2024
1 parent 83f1389 commit ff91439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/types/src/validation_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ impl ValidationReturnInfo {
/// helper function to check if the returned time range is valid
pub fn is_valid_time_range(&self) -> bool {
let now = Timestamp::now();
self.valid_after > now
|| self.valid_until <= now.add(Duration::from_secs(VALID_UNTIL_FUTURE_SECONDS))
self.valid_after <= now
|| self.valid_until > now.add(Duration::from_secs(VALID_UNTIL_FUTURE_SECONDS))
}
}

Expand Down

0 comments on commit ff91439

Please sign in to comment.