incremental update of coinbase cache

This commit is contained in:
Evan Duffield 2015-07-19 06:28:23 -07:00
parent 9a4914e6c1
commit 2e6eb9f2b6

View File

@ -3262,7 +3262,9 @@ bool ProcessNewBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDis
if(!fLiteMode){
if (masternodeSync.IsSynced()){
if(fMasterNode || activeMasternode.status == ACTIVE_MASTERNODE_STARTED) coinbasePayee.BuildIndex(true);
CScript payee;
CTxIn vin;
coinbasePayee.ProcessBlockCoinbaseTX(pblock->vtx[0], pblock->nTime);
darkSendPool.NewBlock();
masternodePayments.ProcessBlock(GetHeight()+10);
budget.NewBlock();