diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index cdaeaea971..15ff49d3cc 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -85,7 +85,6 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes } } - unsigned int nDataOut = 0; txnouttype whichType; BOOST_FOREACH(const CTxOut& txout, tx.vout) { if (!::IsStandard(txout.scriptPubKey, whichType, witnessEnabled) && !txout.IsFee()) { @@ -93,9 +92,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes return false; } - if (whichType == TX_NULL_DATA) - nDataOut++; - else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { + if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { reason = "bare-multisig"; return false; } else if ((txout.nAsset.IsExplicit() && txout.nAsset.GetAsset() == policyAsset) && txout.IsDust(dustRelayFee)) { @@ -104,12 +101,6 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes } } - // only one OP_RETURN txout is permitted - if (nDataOut > 1) { - reason = "multi-op-return"; - return false; - } - return true; }