Simplify replay_timestamp_validation
parent
a4a0d240ac
commit
e41487f80c
|
@ -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
|
Loading…
Reference in New Issue