diff --git a/src/onionrcrypto/cryptoutils/replayvalidation.py b/src/onionrcrypto/cryptoutils/replayvalidation.py index 59c338eb..fc8e8fd0 100644 --- a/src/onionrcrypto/cryptoutils/replayvalidation.py +++ b/src/onionrcrypto/cryptoutils/replayvalidation.py @@ -1,6 +1,3 @@ from onionrutils import epoch def replay_timestamp_validation(timestamp): - if epoch.get_epoch() - int(timestamp) > 2419200: - return False - else: - return True \ No newline at end of file + return epoch.get_epoch() - int(timestamp) <= 2419200 \ No newline at end of file