commit 135c5e805d4ab0c48e474e93e1491507fbaaae0c
parent 7ec2bcd70fd7b2192a1f0a9e48f093085ad4b876
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 6 Mar 2018 12:41:37 +0100
fix #4046
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -439,16 +439,16 @@ def parse_input(vds):
d['prevout_hash'] = prevout_hash
d['prevout_n'] = prevout_n
d['sequence'] = sequence
+ d['x_pubkeys'] = []
+ d['pubkeys'] = []
+ d['signatures'] = {}
+ d['address'] = None
+ d['num_sig'] = 0
if prevout_hash == '00'*32:
d['type'] = 'coinbase'
d['scriptSig'] = bh2u(scriptSig)
else:
- d['x_pubkeys'] = []
- d['pubkeys'] = []
- d['signatures'] = {}
- d['address'] = None
d['type'] = 'unknown'
- d['num_sig'] = 0
if scriptSig:
d['scriptSig'] = bh2u(scriptSig)
try: