Skip to content

Commit

Permalink
Update cycles-ledger/src/storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: bogwar <[email protected]>
  • Loading branch information
NikolasHaimerl and bogwar authored Aug 16, 2023
1 parent 2a7f520 commit 266d3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycles-ledger/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub fn deduplicate(
) -> Result<(), DeduplicationError> {
// TODO: purge old transactions
if let (Some(created_at_time), tx_hash) = (created_at_timestamp, tx_hash) {
// If the created timestamp is outside of the Transaction
// If the created timestamp is outside of the permitted Transaction window
if created_at_time + (config::TRANSACTION_WINDOW.as_nanos() as u64) < now {
return Err(DeduplicationError::TooOld);
}
Expand Down

0 comments on commit 266d3ef

Please sign in to comment.