Simplify replay_timestamp_validation
parent
a4a0d240ac
commit
e41487f80c
|
@ -1,6 +1,3 @@
|
||||||
from onionrutils import epoch
|
from onionrutils import epoch
|
||||||
def replay_timestamp_validation(timestamp):
|
def replay_timestamp_validation(timestamp):
|
||||||
if epoch.get_epoch() - int(timestamp) > 2419200:
|
return epoch.get_epoch() - int(timestamp) <= 2419200
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
Loading…
Reference in New Issue