From 6eea48bf965bfbd7d9b8e12e5f482ee229987ed7 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 8 May 2018 14:23:09 -0600 Subject: [PATCH] Remove unnecessary IsCoinbase() check. Coinbases are guaranteed to have empty vjoinsplit. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f6c211c3b..f83175dec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;