Simplify replay_timestamp_validation

This commit is contained in:
0Gitnick 2019-11-26 18:19:28 -06:00
parent a4a0d240ac
commit e41487f80c

View File

@ -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
return epoch.get_epoch() - int(timestamp) <= 2419200