Browse Source

Fix compiler warning for getnetworkhashps.

0.8
Charlie Lee 11 years ago
parent
commit
3100416cb1
  1. 3
      src/rpcmining.cpp

3
src/rpcmining.cpp

@ -32,7 +32,8 @@ Value GetNetworkHashPS(int lookup, int height) {
lookup = pb->nHeight; lookup = pb->nHeight;
CBlockIndex *pb0 = pb; CBlockIndex *pb0 = pb;
int64 minTime, maxTime = pb0->GetBlockTime(); int64 minTime = pb0->GetBlockTime();
int64 maxTime = minTime;
for (int i = 0; i < lookup; i++) { for (int i = 0; i < lookup; i++) {
pb0 = pb0->pprev; pb0 = pb0->pprev;
int64 time = pb0->GetBlockTime(); int64 time = pb0->GetBlockTime();

Loading…
Cancel
Save