aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-03-10 13:22:29 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-10 13:23:18 +0100
commitb76733d8e89487d0f03fb5ee09432bd4161acd87 (patch)
treee306b724b8c03d503f146f546a374841a5ad5ee2 /src/net.h
parent1795c69aaaed814d5fcf5a1c27984a190f155353 (diff)
parentf59d8f0b644d49324cabd19c58cf2262d49e1392 (diff)
downloadbitcoin-b76733d8e89487d0f03fb5ee09432bd4161acd87.tar.xz
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 8a7531d61b..6210ed80c1 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);