message: Update the check for transaction inputs
diff: @@ -221,7 +221,7 @@ bool Consensus::CheckTxInputs(const CTransaction& tx, CValidationState& state, c
  assert(!coin.IsSpent());
  // If prev is coinbase, check that it's matured
  - if (coin.IsCoinBase()) {
  + if (coin.IsCoinBase() || coin.IsCoinStake()) {
  if (nSpendHeight - coin.nHeight < COINBASE_MATURITY)
  return state.Invalid(false,
  REJECT_INVALID, "bad-txns-premature-spend-of-coinbase",
  @@ -235,6 +235,8 @@ bool Consensus::CheckTxInputs(const CTransaction& tx, CValidationState& state, c
  }
  + if (!tx.IsCoinStake())
  + {
  if (nValueIn < tx.GetValueOut())
  return state.DoS(100, false, REJECT_INVALID, "bad-txns-in-belowout", false,
  strprintf("value in (%s) < value out (%s)", FormatMoney(nValueIn), FormatMoney(tx.GetValueOut())));
  @@ -246,5 +248,7 @@ bool Consensus::CheckTxInputs(const CTransaction& tx, CValidationState& state, c
  nFees += nTxFee;
  if (!MoneyRange(nFees))
  return state.DoS(100, false, REJECT_INVALID, "bad-txns-fee-outofrange");
  + }
  +
  return true;
  }
  