mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Prevector type
This commit is contained in:
parent
4f09b77c7f
commit
114b5812f6
19 changed files with 874 additions and 68 deletions
|
|
@ -205,9 +205,9 @@ bool CScript::IsPayToScriptHash() const
|
|||
{
|
||||
// Extra-fast test for pay-to-script-hash CScripts:
|
||||
return (this->size() == 23 &&
|
||||
this->at(0) == OP_HASH160 &&
|
||||
this->at(1) == 0x14 &&
|
||||
this->at(22) == OP_EQUAL);
|
||||
(*this)[0] == OP_HASH160 &&
|
||||
(*this)[1] == 0x14 &&
|
||||
(*this)[22] == OP_EQUAL);
|
||||
}
|
||||
|
||||
bool CScript::IsPushOnly(const_iterator pc) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue