diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index e84a8428bf2..68d879b5b81 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -225,6 +225,11 @@ bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs) // get the scriptPubKey corresponding to this input: CScript prevScript = prev.scriptPubKey; + // witness stuffing detected + if (prevScript.IsPayToAnchor()) { + return false; + } + bool p2sh = false; if (prevScript.IsPayToScriptHash()) { std::vector > stack;