mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-13 06:01:45 +00:00
Litecoin: Reduce amount that peers can adjust our time to eliminate an attack vector.
This commit is contained in:
parent
7383ef5364
commit
7b0e39430b
@ -77,7 +77,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nTime)
|
||||
int64_t nMedian = vTimeOffsets.median();
|
||||
std::vector<int64_t> vSorted = vTimeOffsets.sorted();
|
||||
// Only let other nodes change our time by so much
|
||||
if (abs64(nMedian) < 70 * 60)
|
||||
if (abs64(nMedian) < 35 * 60)
|
||||
{
|
||||
nTimeOffset = nMedian;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user