Add average hash rate to metrics

This commit is contained in:
Jack Grigg
2016-09-05 10:54:15 +12:00
parent db853f8a46
commit e7d59bbc12
4 changed files with 8 additions and 1 deletions

View File

@@ -541,6 +541,7 @@ void static BitcoinMiner(CWallet *pwallet)
// Write the solution to the hash and compute the result.
LogPrint("pow", "- Checking solution against target\n");
pblock->nSolution = soln;
solutionTargetChecks.increment();
if (UintToArith256(pblock->GetHash()) > hashTarget) {
return false;