X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=backends%2Fabe%2F__init__.py;h=8a9c73b881dbd347b9077ef18ddb1bf6f266e6bd;hb=c7a79a41e063aa851d42b4e4cc73fedb12e05169;hp=3bfa2f1944e0c4e84119b2b9ae7cbf29da57702e;hpb=8c8af6238e765f67555c7b9af1bf0483b76fddb9;p=electrum-server.git 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