X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnet.h;h=8a74b253f32571d271ae608854ae6e9854efa017;hb=70550ed81be022c81826791a75dd1567db1d667b;hp=03da382df36c1ff41888f139bd69b5b491355962;hpb=5df96269d30ec57e69676e6937b45b3608df98ac;p=novacoin.git diff --git a/src/net.h b/src/net.h index 03da382..8a74b25 100644 --- a/src/net.h +++ b/src/net.h @@ -271,7 +271,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);