add notary pay stuff without breaking blockindex.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user