Allow daemon is None still
This commit is contained in:
parent
0ff579604c
commit
3d41738a00
@ -325,8 +325,6 @@ class BlockProcessor(LoggedClass):
|
|||||||
self.height = self.db_height
|
self.height = self.db_height
|
||||||
self.tip = self.db_tip
|
self.tip = self.db_tip
|
||||||
|
|
||||||
self.daemon.debug_set_height(self.height)
|
|
||||||
|
|
||||||
# Caches to be flushed later. Headers and tx_hashes have one
|
# Caches to be flushed later. Headers and tx_hashes have one
|
||||||
# entry per block
|
# entry per block
|
||||||
self.history = defaultdict(partial(array.array, 'I'))
|
self.history = defaultdict(partial(array.array, 'I'))
|
||||||
@ -360,6 +358,7 @@ class BlockProcessor(LoggedClass):
|
|||||||
self.clean_db()
|
self.clean_db()
|
||||||
|
|
||||||
def coros(self):
|
def coros(self):
|
||||||
|
self.daemon.debug_set_height(self.height)
|
||||||
return [self.start(), self.prefetcher.start()]
|
return [self.start(), self.prefetcher.start()]
|
||||||
|
|
||||||
async def start(self):
|
async def start(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user