diff --git a/electrum/daemon.py b/electrum/daemon.py index a3379d09f87c..be4b3e3918a4 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -573,7 +573,7 @@ async def stop_async(): remove_lockfile(get_lockfile(self.config)) self.logger.info("stopped") header_verification.end_process() - self.logger.info("ended verification daemon") + self.logger.info("ended verification process") self.asyncio_loop.call_soon_threadsafe(self.stopped_event.set) def run_gui(self, config, plugins): diff --git a/electrum/header_verification.py b/electrum/header_verification.py index 97291416d46a..e1d5aac609fb 100644 --- a/electrum/header_verification.py +++ b/electrum/header_verification.py @@ -1,3 +1,6 @@ +# Minimize imports to decrease overhead +# Changes to blockchain.py must be reflected here + import hashlib import multiprocessing import struct @@ -358,14 +361,17 @@ def _verify_process(q_in, q_out): q_out.put(e) +# Blocking, but shouldn't block def verify_chunk(data_tup): return queue_in.put(data_tup) +# Blocking, will block def get_verify_result(): return queue_out.get() +# Blocking, but shouldn't block def end_process(): queue_in.put('STOP') _proc.join() diff --git a/electrum/version.py b/electrum/version.py index 0064fb037aa6..2c988b181456 100644 --- a/electrum/version.py +++ b/electrum/version.py @@ -1,4 +1,4 @@ -ELECTRUM_VERSION = '0.4.2' # version of the client package +ELECTRUM_VERSION = '0.4.3' # version of the client package APK_VERSION = '4.1.5.0' # read by buildozer.spec PROTOCOL_VERSION = '1.9' # protocol version requested