From: ThomasV Date: Mon, 11 Jun 2012 12:21:19 +0000 (+0400) Subject: workaround X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=c7a79a41e063aa851d42b4e4cc73fedb12e05169 workaround --- diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 3bfa2f1..8a9c73b 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -53,6 +53,10 @@ class AbeStore(Datastore_class): inrows = self.get_tx_inputs(txid, False) for row in inrows: _hash = self.binout(row[6]) + if not _hash: + print "WARNING: missing tx_in for tx", txid + continue + address = hash_to_address(chr(0), _hash) if self.tx_cache.has_key(address): print "cache: invalidating", address @@ -62,6 +66,10 @@ class AbeStore(Datastore_class): outrows = self.get_tx_outputs(txid, False) for row in outrows: _hash = self.binout(row[6]) + if not _hash: + print "WARNING: missing tx_out for tx", txid + continue + address = hash_to_address(chr(0), _hash) if self.tx_cache.has_key(address): print "cache: invalidating", address