const CTransaction &tx = vtx[i];
uint256 hash = tx.GetHash();
+ // don't check coinbase coins for proof-of-stake block
+ if(IsProofOfStake() && tx.IsCoinBase())
+ continue;
+
// check that all outputs are available
CCoins outs;
if (!view.GetCoins(hash, outs))
nValueOut += tx.GetValueOut();
}
+ // don't create coinbase coins for proof-of-stake block
+ if(IsProofOfStake() && tx.IsCoinBase())
+ continue;
+
CTxUndo txundo;
if (!tx.UpdateCoins(view, txundo, pindex->nHeight, pindex->nTime))
return error("ConnectBlock() : UpdateInputs failed");