Skip to content

Commit 6384e14

Browse files
committed
add OP_TRUE OP_FALSE
1 parent ea866c4 commit 6384e14

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: bitcoin/core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class CMutableTxOut(CTxOut):
308308

309309
@classmethod
310310
def from_txout(cls, txout):
311-
"""Create a fullly mutable copy of an existing TxOut"""
311+
"""Create a fully mutable copy of an existing TxOut"""
312312
return cls(txout.nValue, txout.scriptPubKey)
313313

314314

Diff for: bitcoin/core/script.py

+2
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,14 @@ def __new__(cls, n):
375375

376376
OPCODES_BY_NAME = {
377377
'OP_0': OP_0,
378+
'OP_FALSE': OP_0,
378379
'OP_PUSHDATA1': OP_PUSHDATA1,
379380
'OP_PUSHDATA2': OP_PUSHDATA2,
380381
'OP_PUSHDATA4': OP_PUSHDATA4,
381382
'OP_1NEGATE': OP_1NEGATE,
382383
'OP_RESERVED': OP_RESERVED,
383384
'OP_1': OP_1,
385+
'OP_TRUE': OP_1,
384386
'OP_2': OP_2,
385387
'OP_3': OP_3,
386388
'OP_4': OP_4,

0 commit comments

Comments
 (0)