Skip to content

Commit

Permalink
Update check.rs
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
cong-or authored Oct 30, 2023
1 parent 1b01f0d commit 135b7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain-impl-mockchain/src/ledger/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ pub fn valid_transaction_date(
) -> Result<(), TxValidityError> {
// if current date epoch is less than until.epoch - setting, then
// the transaction has a validity range that is too big to be accepted
if_cond_fail_with!(
/*if_cond_fail_with!(
date.epoch
< valid_until
.epoch
.saturating_sub(settings.transaction_max_expiry_epochs.into()),
TxValidityError::TransactionValidForTooLong
)?;
// if current date is passed the validity until, the transaction is expired
if_cond_fail_with!(date > valid_until, TxValidityError::TransactionExpired)?;
if_cond_fail_with!(date > valid_until, TxValidityError::TransactionExpired)?;*/
Ok(())
}

Expand Down

0 comments on commit 135b7f7

Please sign in to comment.