Skip to content

Commit 838d3b4

Browse files
committed
Remove redundant and broken SCRIPT_VERIFY constants
1 parent 144bf8f commit 838d3b4

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

bitcoin/core/script.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,6 @@ def GetSigOpCount(self, fAccurate):
772772
return n
773773

774774

775-
SCRIPT_VERIFY_P2SH = object()
776-
SCRIPT_VERIFY_STRICTENC = object()
777-
SCRIPT_VERIFY_EVEN_S = object()
778-
SCRIPT_VERIFY_NOCACHE = object()
779-
780775
SIGHASH_ALL = 1
781776
SIGHASH_NONE = 2
782777
SIGHASH_SINGLE = 3
@@ -1051,10 +1046,6 @@ def SignatureHash(script, txTo, inIdx, hashtype):
10511046
'CScriptInvalidError',
10521047
'CScriptTruncatedPushDataError',
10531048
'CScript',
1054-
'SCRIPT_VERIFY_P2SH',
1055-
'SCRIPT_VERIFY_STRICTENC',
1056-
'SCRIPT_VERIFY_EVEN_S',
1057-
'SCRIPT_VERIFY_NOCACHE',
10581049
'SIGHASH_ALL',
10591050
'SIGHASH_NONE',
10601051
'SIGHASH_SINGLE',

release-notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
python-bitcoinlib release notes
22
===============================
33

4+
v0.6.0
5+
======
6+
7+
Breaking API changes:
8+
9+
* Removed SCRIPT_VERIFY constants ``bitcoin.core.script``, leaving just the
10+
constants in ``bitcoin.core.scripteval``; being singletons the redundant
11+
constants were broken anyway.
12+
13+
414
v0.5.1
515
======
616

0 commit comments

Comments
 (0)