fix coinbase detection for z inputs

This commit is contained in:
zebra-lucky 2018-04-09 15:15:03 +03:00
parent db927cc4bd
commit 78f469aa50
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ class Abstract_Wallet(PrintError):
return addr
def add_transaction(self, tx_hash, tx):
is_coinbase = tx.inputs()[0]['type'] == 'coinbase'
is_coinbase = len(tx.inputs()) and tx.inputs()[0]['type'] == 'coinbase'
with self.transaction_lock:
# add inputs
self.txi[tx_hash] = d = {}