|
|
|
@ -452,7 +452,7 @@ class CTransaction(object):
@@ -452,7 +452,7 @@ class CTransaction(object):
|
|
|
|
|
else: |
|
|
|
|
self.vout = deser_vector(f, CTxOut) |
|
|
|
|
if flags != 0: |
|
|
|
|
self.wit.vtxinwit = [CTxInWitness()]*len(self.vin) |
|
|
|
|
self.wit.vtxinwit = [CTxInWitness() for i in range(len(self.vin))] |
|
|
|
|
self.wit.deserialize(f) |
|
|
|
|
self.nLockTime = struct.unpack("<I", f.read(4))[0] |
|
|
|
|
self.sha256 = None |
|
|
|
@ -518,8 +518,8 @@ class CTransaction(object):
@@ -518,8 +518,8 @@ class CTransaction(object):
|
|
|
|
|
return True |
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
|
return "CTransaction(nVersion=%i vin=%s vout=%s nLockTime=%i)" \ |
|
|
|
|
% (self.nVersion, repr(self.vin), repr(self.vout), self.nLockTime) |
|
|
|
|
return "CTransaction(nVersion=%i vin=%s vout=%s wit=%s nLockTime=%i)" \ |
|
|
|
|
% (self.nVersion, repr(self.vin), repr(self.vout), repr(self.wit), self.nLockTime) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CBlockHeader(object): |
|
|
|
|