mirror of
https://github.com/wownero/wownero-ng.git
synced 2026-11-15 21:14:04 +01:00
rpc: Add check for too old timestamps in payment signatures.
This commit is contained in:
@@ -102,6 +102,11 @@ namespace cryptonote
|
||||
MDEBUG("Timestamp is in the future");
|
||||
return false;
|
||||
}
|
||||
if (ts < now - TIMESTAMP_LEEWAY)
|
||||
{
|
||||
MDEBUG("Timestamp is too old");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user