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

@@ -438,7 +438,7 @@ static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& rese
if (!ProcessNewBlock(state, NULL, pblock, true, NULL))
return error("ZcashMiner: ProcessNewBlock, block not accepted");
minedBlocks.increment();
TrackMinedBlock(pblock->GetHash());
return true;
}