add notary pay stuff without breaking blockindex.

This commit is contained in:
blackjok3r
2019-04-17 18:36:00 +08:00
parent ab7558ab9d
commit 25bf471ddd
3 changed files with 12 additions and 9 deletions

View File

@@ -3714,11 +3714,11 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
//FlushStateToDisk();
komodo_connectblock(false,pindex,*(CBlock *)&block); // dPoW state update.
if ( ASSETCHAINS_NOTARY_PAY[0] != 0 && pindex->GetHeight() > 10 )
if ( ASSETCHAINS_NOTARY_PAY[0] != 0 )
{
// Update the notary pay with the latest payment.
pindex->nNotaryPay = pindex->pprev->nNotaryPay + notarypaycheque;
fprintf(stderr, "total notary pay.%li\n", pindex->nNotaryPay);
//fprintf(stderr, "total notary pay.%li\n", pindex->nNotaryPay);
}
return true;
}