rpc: Add check for too old timestamps in payment signatures.

pull/241/head
Guillaume Le Vaillant 4 years ago
parent 6b2b1d6368
commit 82da832368

@ -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…
Cancel
Save