return 0 for hash rate rather than stale value when not generating
This commit is contained in:
@@ -380,7 +380,7 @@ UniValue getmininginfo(const UniValue& params, bool fHelp)
|
||||
}
|
||||
else
|
||||
{
|
||||
obj.push_back(Pair("localhashps" , getlocalsolps(params, false)));
|
||||
obj.push_back(Pair("localhashps" , GetBoolArg("-gen", false) ? getlocalsolps(params, false) : (double)0.0));
|
||||
}
|
||||
obj.push_back(Pair("networkhashps", getnetworksolps(params, false)));
|
||||
obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
|
||||
|
||||
Reference in New Issue
Block a user