From a019656a5ebe003a4f7cbcca0dd265c28ae6fc19 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 19 Jul 2018 13:01:07 +0800 Subject: [PATCH] Make it clear where BlockProcessor is instantiated --- electrumx/server/chain_state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrumx/server/chain_state.py b/electrumx/server/chain_state.py index 59ed1ac..b667c31 100644 --- a/electrumx/server/chain_state.py +++ b/electrumx/server/chain_state.py @@ -21,7 +21,8 @@ class ChainState(object): self.tasks = tasks self.shutdown_event = shutdown_event self.daemon = env.coin.DAEMON(env) - self.bp = env.coin.BLOCK_PROCESSOR(env, tasks, self.daemon) + BlockProcessor = env.coin.BLOCK_PROCESSOR + self.bp = BlockProcessor(env, tasks, self.daemon) self.mempool = MemPool(env.coin, self, self.tasks, self.bp.add_new_block_callback) self.history_cache = pylru.lrucache(256)