fix standardness check ordering of scriptpubkey

This commit is contained in:
Gregory Sanders 2017-11-20 12:05:18 -05:00
parent 81f986b014
commit cc4b9bf528

View file

@ -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;
}