mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
rpc: Add check for too old timestamps in payment signatures.
This commit is contained in:
parent
6b2b1d6368
commit
82da832368
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user