aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-03-10 13:22:29 +0100
committerWladimir J. van der Laan <[email protected]>2014-03-10 13:23:18 +0100
commitb76733d8e89487d0f03fb5ee09432bd4161acd87 (patch)
treee306b724b8c03d503f146f546a374841a5ad5ee2 /src/net.h
parentMerge pull request #3833 (diff)
parentPer-peer block download tracking and stalled download detection. (diff)
downloaddiscoin-b76733d8e89487d0f03fb5ee09432bd4161acd87.tar.xz
discoin-b76733d8e89487d0f03fb5ee09432bd4161acd87.zip
Merge pull request #3514
f59d8f0 Per-peer block download tracking and stalled download detection. (Pieter Wuille)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 8a7531d61..6210ed80c 100644
--- a/src/net.h
+++ b/src/net.h
@@ -426,7 +426,7 @@ public:
LogPrint("net", "askfor %s %d (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
// Make sure not to reuse time indexes to keep things in the same order
- int64_t nNow = (GetTime() - 1) * 1000000;
+ int64_t nNow = GetTimeMicros() - 1000000;
static int64_t nLastTime;
++nLastTime;
nNow = std::max(nNow, nLastTime);