File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,8 @@ bool CScript::IsPayToScriptHash() const
210
210
this ->at (22 ) == OP_EQUAL);
211
211
}
212
212
213
- bool CScript::IsPushOnly () const
213
+ bool CScript::IsPushOnly (const_iterator pc ) const
214
214
{
215
- const_iterator pc = begin ();
216
215
while (pc < end ())
217
216
{
218
217
opcodetype opcode;
@@ -227,3 +226,8 @@ bool CScript::IsPushOnly() const
227
226
}
228
227
return true ;
229
228
}
229
+
230
+ bool CScript::IsPushOnly () const
231
+ {
232
+ return this ->IsPushOnly (begin ());
233
+ }
Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ class CScript : public std::vector<unsigned char>
589
589
bool IsPayToScriptHash () const ;
590
590
591
591
/* * Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it consensus-critical). */
592
+ bool IsPushOnly (const_iterator pc) const ;
592
593
bool IsPushOnly () const ;
593
594
594
595
/* *
You can’t perform that action at this time.
0 commit comments