X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnet.h;h=03d514ca909cfe00ed3d2facf8fb72377a3ee361;hb=948072c39f913d1ebe43b3b46234f9d7a0d00427;hp=741e2a812ecf606314fbf7cdb06ace98e146ce0c;hpb=880c47863587ef4f464c4d681713e1f24cbf1cb7;p=novacoin.git diff --git a/src/net.h b/src/net.h index 741e2a8..03d514c 100644 --- a/src/net.h +++ b/src/net.h @@ -264,7 +264,9 @@ public: // Make sure not to reuse time indexes to keep things in the same order int64 nNow = (GetTime() - 1) * 1000000; static int64 nLastTime; - nLastTime = nNow = std::max(nNow, ++nLastTime); + ++nLastTime; + nNow = std::max(nNow, nLastTime); + nLastTime = nNow; // Each retry is 2 minutes after the last nRequestTime = std::max(nRequestTime + 2 * 60 * 1000000, nNow);