Onionr/onionr/onionrcrypto/cryptoutils/replayvalidation.py
2019-07-21 11:15:20 -05:00

6 lines
177 B
Python

from onionrutils import epoch
def replay_timestamp_validation(timestamp):
if epoch.get_epoch() - int(timestamp) > 2419200:
return False
else:
return True