Skip to content

Commit 041a801

Browse files
authored
Merge pull request #157 from JAGADISHSUNILPEDNEKAR/fix-code-ops-dictionary
Fix duplicate keys in CODE_OPS dictionary
2 parents 061a663 + e42af4a commit 041a801

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bitcoinutils/script.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@
225225
b"\xaf": "OP_CHECKMULTISIGVERIFY",
226226
b"\xba": "OP_CHECKSIGADD", # added this new OPCODE
227227
# locktime
228-
b"\xb1": "OP_NOP2",
229-
b"\xb1": "OP_CHECKLOCKTIMEVERIFY",
230-
b"\xb2": "OP_NOP3",
231-
b"\xb2": "OP_CHECKSEQUENCEVERIFY",
228+
# This used to be OP_NOP2
229+
b"\xb1": "OP_CHECKLOCKTIMEVERIFY",
230+
# This used to be OP_NOP3
231+
b"\xb2": "OP_CHECKSEQUENCEVERIFY",
232232
}
233233

234234

@@ -452,4 +452,4 @@ def __repr__(self) -> str:
452452
def __eq__(self, _other: object) -> bool:
453453
if not isinstance(_other, Script):
454454
return False
455-
return self.script == _other.script
455+
return self.script == _other.script

0 commit comments

Comments
 (0)