From 78f469aa50d50883d77ee466c5ead4d1be7ff236 Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Mon, 9 Apr 2018 15:15:03 +0300 Subject: [PATCH] fix coinbase detection for z inputs --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 5ef81bd5..4f2452f0 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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 = {}