|
|
@ -482,6 +482,7 @@ class Transaction: |
|
|
|
|
|
|
|
def __init__(self, raw): |
|
|
|
self.raw = raw |
|
|
|
self.inputs = None |
|
|
|
|
|
|
|
def update(self, raw): |
|
|
|
self.raw = raw |
|
|
@ -518,6 +519,8 @@ class Transaction: |
|
|
|
|
|
|
|
|
|
|
|
def deserialize(self): |
|
|
|
if self.inputs is not None: |
|
|
|
return |
|
|
|
d = deserialize(self.raw) |
|
|
|
self.inputs = d['inputs'] |
|
|
|
self.outputs = [(x['type'], x['address'], x['value']) for x in d['outputs']] |
|
|
|