From: ThomasV Date: Mon, 11 Jun 2012 20:17:58 +0000 (+0400) Subject: more workaround X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=3aee36d3f29dc525dde52af48a3a10405085437f more workaround --- diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 8a9c73b..eea0a03 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -273,6 +273,9 @@ class AbeStore(Datastore_class): inrows = self.get_tx_inputs(tx_id) for row in inrows: _hash = self.binout(row[6]) + if not _hash: + print "WARNING: missing tx_in for tx", tx_id, addr + continue address = hash_to_address(chr(0), _hash) txinputs.append(address) txpoint['inputs'] = txinputs @@ -280,6 +283,9 @@ class AbeStore(Datastore_class): outrows = self.get_tx_outputs(tx_id) for row in outrows: _hash = self.binout(row[6]) + if not _hash: + print "WARNING: missing tx_out for tx", tx_id, addr + continue address = hash_to_address(chr(0), _hash) txoutputs.append(address) txpoint['outputs'] = txoutputs