Track mined blocks to detect and report orphans and mining revenue

Part of #1713
Closes #1716
This commit is contained in:
Jack Grigg
2016-10-30 14:36:36 -07:00
parent 1feaefac51
commit d793f94b8a
6 changed files with 56 additions and 4 deletions

View File

@@ -205,7 +205,6 @@ endloop:
CValidationState state;
if (!ProcessNewBlock(state, NULL, pblock, true, NULL))
throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted");
minedBlocks.increment();
++nHeight;
blockHashes.push_back(pblock->GetHash().GetHex());
}