Merge pull request #6342

82da832 rpc: Add check for too old timestamps in payment signatures. (glv2)
This commit is contained in:
luigi1111 2020-04-04 12:49:02 -05:00
commit ad5200e440
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -102,6 +102,11 @@ namespace cryptonote
MDEBUG("Timestamp is in the future"); MDEBUG("Timestamp is in the future");
return false; return false;
} }
if (ts < now - TIMESTAMP_LEEWAY)
{
MDEBUG("Timestamp is too old");
return false;
}
return true; return true;
} }
} }