mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 08:08:25 +00:00
Add IsPushOnly(const_iterator pc)
Allows IsPushOnly() to be applied to just part of the script for OP_RETURN outputs.
This commit is contained in:
parent
6a07eb676a
commit
5d8709c3b7
@ -210,9 +210,8 @@ bool CScript::IsPayToScriptHash() const
|
|||||||
this->at(22) == OP_EQUAL);
|
this->at(22) == OP_EQUAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CScript::IsPushOnly() const
|
bool CScript::IsPushOnly(const_iterator pc) const
|
||||||
{
|
{
|
||||||
const_iterator pc = begin();
|
|
||||||
while (pc < end())
|
while (pc < end())
|
||||||
{
|
{
|
||||||
opcodetype opcode;
|
opcodetype opcode;
|
||||||
@ -227,3 +226,8 @@ bool CScript::IsPushOnly() const
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CScript::IsPushOnly() const
|
||||||
|
{
|
||||||
|
return this->IsPushOnly(begin());
|
||||||
|
}
|
||||||
|
@ -589,6 +589,7 @@ public:
|
|||||||
bool IsPayToScriptHash() const;
|
bool IsPayToScriptHash() const;
|
||||||
|
|
||||||
/** Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it consensus-critical). */
|
/** Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it consensus-critical). */
|
||||||
|
bool IsPushOnly(const_iterator pc) const;
|
||||||
bool IsPushOnly() const;
|
bool IsPushOnly() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user