From bc0d08087a2e4e5f6e83020dfb3db0d1523c3273 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 26 Jun 2012 00:07:19 +0400 Subject: [PATCH] fix order so that the cache always works --- backends/abe/__init__.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 7584fd5..c143f42 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -282,14 +282,13 @@ class AbeStore(Datastore_class): if tx_hash in known_tx: continue - # this means that pending transactions were added to the db, even if they are not returned by getmemorypool - address_has_mempool = True - # discard transactions that are too old if self.last_tx_id - tx_id > 10000: print "discarding tx id", tx_id continue + # this means that pending transactions were added to the db, even if they are not returned by getmemorypool + address_has_mempool = True #print "mempool", tx_hash txpoint = { -- 1.7.1