if (IsProofOfStake())
{
- assert(nNonce == 0);
-
// Coinbase output should be empty if proof-of-stake block
if (vtx[0].vout.size() != 1 || !vtx[0].vout[0].IsEmpty())
return DoS(100, error("CheckBlock() : coinbase output not empty for proof-of-stake block"));
}
else
{
- assert(nNonce != 0);
-
// Coinbase fee paid until 20 Sep 2013
int64 nFee = GetBlockTime() < CHAINCHECKS_SWITCH_TIME ? vtx[0].GetMinFee() - MIN_TX_FEE : 0;