Onionr/onionr/onionrcrypto/cryptoutils/replayvalidation.py

6 lines
177 B
Python
Raw Normal View History

2019-07-21 16:15:20 +00:00
from onionrutils import epoch
2019-07-20 00:01:16 +00:00
def replay_timestamp_validation(timestamp):
2019-07-21 16:15:20 +00:00
if epoch.get_epoch() - int(timestamp) > 2419200:
2019-07-20 00:01:16 +00:00
return False
else:
return True