Skip to content

Commit cf0817e

Browse files
committed
fixed attribute creation for EvalScriptError
1 parent 69be70c commit cf0817e

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

bitcoin/core/scripteval.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
long = int
2525
_bord = lambda x: x
2626

27-
import copy
2827
import hashlib
2928

3029
import bitcoin.core
@@ -57,18 +56,18 @@ def __init__(self,
5756
altstack=None, vfExec=None, pbegincodehash=None, nOpCount=None):
5857
super(EvalScriptError, self).__init__('EvalScript: %s' % msg)
5958

60-
sop = sop
61-
sop_data = sop_data
62-
sop_pc = sop_pc
63-
stack = stack
64-
scriptIn = scriptIn
65-
txTo = txTo
66-
inIdx = inIdx
67-
flags = flags
68-
altstack = altstack
69-
vfExec = vfExec
70-
pbegincodehash = pbegincodehash
71-
nOpCount = nOpCount
59+
self.sop = sop
60+
self.sop_data = sop_data
61+
self.sop_pc = sop_pc
62+
self.stack = stack
63+
self.scriptIn = scriptIn
64+
self.txTo = txTo
65+
self.inIdx = inIdx
66+
self.flags = flags
67+
self.altstack = altstack
68+
self.vfExec = vfExec
69+
self.pbegincodehash = pbegincodehash
70+
self.nOpCount = nOpCount
7271

7372
class MaxOpCountError(EvalScriptError):
7473
def __init__(self, **kwargs):

0 commit comments

Comments
 (0)