Onionr/onionr/onionrcrypto/cryptoutils/replayvalidation.py

6 lines
203 B
Python
Raw Normal View History

2019-07-20 00:01:16 +00:00
import utils # onionr utils epoch, not this utils
def replay_timestamp_validation(timestamp):
if utils.epoch.get_epoch() - int(timestamp) > 2419200:
return False
else:
return True