We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad2b3e commit 78fc9f2Copy full SHA for 78fc9f2
bip-0119.mediawiki
@@ -239,13 +239,10 @@ optimization.
239
240
A PayToBareDefaultCheckTemplateVerifyHash output matches the following template:
241
242
- bool CScript::IsPayToBareDefaultCheckTemplateVerifyHash() const
243
- {
244
- // Extra-fast test for pay-to-basic-standard-template CScripts:
245
- return (this->size() == 34 &&
246
- (*this)[0] == 0x20 &&
247
- (*this)[33] == OP_CHECKTEMPLATEVERIFY);
248
- }
+ # Extra-fast test for pay-to-basic-standard-template CScripts:
+ def is_pay_to_bare_default_check_template_verify_hash(self):
+ return len(self) == 34 and self[0] == 0x20 and self[-1] == OP_CHECKTEMPLATEVERIFY
+
249
250
==Deployment==
251
0 commit comments