mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6342
82da832
rpc: Add check for too old timestamps in payment signatures. (glv2)
This commit is contained in:
commit
ad5200e440
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