mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
rpc: Add check for too old timestamps in payment signatures.
This commit is contained in:
parent
6b2b1d6368
commit
82da832368
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue