mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 13:13:27 +01:00
Merge pull request #6342
82da832
rpc: Add check for too old timestamps in payment signatures. (glv2)
This commit is contained in:
commit
ad5200e440
@ -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 New Issue
Block a user