From cc4b9bf528b31030aa08212f1586fd28efad5022 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Mon, 20 Nov 2017 12:05:18 -0500 Subject: [PATCH] fix standardness check ordering of scriptpubkey --- src/policy/policy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index 2d0299a62d..cdaeaea971 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -88,7 +88,7 @@ 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 (!txout.IsFee() && !::IsStandard(txout.scriptPubKey, whichType, witnessEnabled)) { + if (!::IsStandard(txout.scriptPubKey, whichType, witnessEnabled) && !txout.IsFee()) { reason = "scriptpubkey"; return false; }