diff --git a/src/bloom.cpp b/src/bloom.cpp index b8cdba3dd..a59bfeaba 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -156,7 +156,7 @@ bool CBloomFilter::IsRelevantAndUpdate(const CTransaction& tx) else if ((nFlags & BLOOM_UPDATE_MASK) == BLOOM_UPDATE_P2PUBKEY_ONLY) { std::vector > vSolutions; - const CScript& scriptPubKey = StripClaimScriptPrefix(txout.scriptPubKey); + const CScript& scriptPubKey = txout.scriptPubKey; txnouttype type = Solver(scriptPubKey, vSolutions); if (type == TX_PUBKEY || type == TX_MULTISIG) { insert(COutPoint(hash, i)); diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index 3ac82b635..3dc0574f5 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -10,7 +10,7 @@ #include #include -#include "nameclaim.h" +#include CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn) @@ -114,8 +114,7 @@ bool IsStandardTx(const CTransaction& tx, bool permit_bare_multisig, const CFeeR unsigned int nDataOut = 0; txnouttype whichType; for (const CTxOut& txout : tx.vout) { - const CScript& scriptPubKey = StripClaimScriptPrefix(txout.scriptPubKey); - if (!::IsStandard(scriptPubKey, whichType)) { + if (!::IsStandard(txout.scriptPubKey, whichType)) { reason = "scriptpubkey"; return false; } @@ -166,7 +165,7 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs) const CTxOut& prev = mapInputs.AccessCoin(tx.vin[i].prevout).out; std::vector > vSolutions; - const CScript& prevScript = StripClaimScriptPrefix(prev.scriptPubKey); + const CScript& prevScript = prev.scriptPubKey; txnouttype whichType = Solver(prevScript, vSolutions); if (whichType == TX_NONSTANDARD) { return false; diff --git a/src/script/sign.cpp b/src/script/sign.cpp index c03ad1f87..42358ee55 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -12,8 +12,6 @@ #include