From 3100416cb13f2bc4724fb792279c7c161aa11699 Mon Sep 17 00:00:00 2001 From: Charlie Lee Date: Tue, 17 Sep 2013 11:13:07 +0800 Subject: [PATCH] Fix compiler warning for getnetworkhashps. --- src/rpcmining.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index d66652ebd..4a1a2b332 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -32,7 +32,8 @@ Value GetNetworkHashPS(int lookup, int height) { lookup = pb->nHeight; CBlockIndex *pb0 = pb; - int64 minTime, maxTime = pb0->GetBlockTime(); + int64 minTime = pb0->GetBlockTime(); + int64 maxTime = minTime; for (int i = 0; i < lookup; i++) { pb0 = pb0->pprev; int64 time = pb0->GetBlockTime();