Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. bool CScript::IsPushOnly(const_iterator pc) const
  2. {
  3. while (pc < end())
  4. {
  5. opcodetype opcode;
  6. if (!GetOp(pc, opcode))
  7. return false;
  8. // Note that IsPushOnly() *does* consider OP_RESERVED to be a
  9. // push-type opcode, however execution of OP_RESERVED fails, so
  10. // it's not relevant to P2SH/BIP62 as the scriptSig would fail prior to
  11. // the P2SH special validation code being executed.
  12. if (opcode > OP_16)
  13. return false;
  14. }
  15. return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement