From c7a79a41e063aa851d42b4e4cc73fedb12e05169 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 11 Jun 2012 16:21:19 +0400 Subject: [PATCH] workaround --- backends/abe/__init__.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) 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 -- 1.7.1