From 7b0e39430bbdf2578547edfc6a0ddbf34eb0048b Mon Sep 17 00:00:00 2001 From: coblee Date: Fri, 28 Oct 2011 20:34:19 -1000 Subject: [PATCH] Litecoin: Reduce amount that peers can adjust our time to eliminate an attack vector. --- src/timedata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timedata.cpp b/src/timedata.cpp index 59f7778db..fdb702a35 100644 --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -77,7 +77,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nTime) int64_t nMedian = vTimeOffsets.median(); std::vector 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; }