Remove unnecessary IsCoinbase() check. Coinbases are guaranteed to have empty vjoinsplit.

This commit is contained in:
Sean Bowe
2018-05-08 14:23:09 -06:00
parent b1d2a69908
commit 6eea48bf96

View File

@@ -953,7 +953,7 @@ bool ContextualCheckTransaction(const CTransaction& tx, CValidationState &state,
REJECT_INVALID, "bad-txns-oversize");
}
if (!(tx.IsCoinBase() || tx.vjoinsplit.empty())) {
if (!tx.vjoinsplit.empty()) {
auto consensusBranchId = CurrentEpochBranchId(nHeight, Params().GetConsensus());
// Empty output script.
CScript scriptCode;