From 3d41738a008b0c8652f70853634b7945934522e0 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 6 Nov 2016 12:09:41 +0900 Subject: [PATCH] Allow daemon is None still --- server/block_processor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/block_processor.py b/server/block_processor.py index 0db296a..74c0f27 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -325,8 +325,6 @@ class BlockProcessor(LoggedClass): self.height = self.db_height self.tip = self.db_tip - self.daemon.debug_set_height(self.height) - # Caches to be flushed later. Headers and tx_hashes have one # entry per block self.history = defaultdict(partial(array.array, 'I')) @@ -360,6 +358,7 @@ class BlockProcessor(LoggedClass): self.clean_db() def coros(self): + self.daemon.debug_set_height(self.height) return [self.start(), self.prefetcher.start()] async def start(self):