commit 64deb87ade6d2cad0501b50086c7ac595d6a2a28
parent 103a37b0ca597be27760ef7c206c9f724fc6ed3b
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 9 Sep 2019 11:58:32 +0200
fix #5513
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/transaction.py b/electrum/transaction.py
@@ -624,12 +624,12 @@ class Transaction:
def inputs(self):
if self._inputs is None:
self.deserialize()
- return self._inputs
+ return self._inputs or []
def outputs(self) -> List[TxOutput]:
if self._outputs is None:
self.deserialize()
- return self._outputs
+ return self._outputs or []
@classmethod
def get_sorted_pubkeys(self, txin):