From 54273d23e9d82a9744eee9aa1e3b2471c375462c Mon Sep 17 00:00:00 2001 From: 4tochka Date: Sun, 28 Apr 2019 16:28:23 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybtc/connector.py b/pybtc/connector.py index fa8f2b1..41e2d23 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -145,6 +145,8 @@ class Connector: msg = await self.zmqSubSocket.recv_multipart() topic = msg[0] body = msg[1] + if self.deep_synchronization: + continue if topic == b"hashblock": self.last_zmq_msg = int(time.time()) hash = body.hex() @@ -152,8 +154,6 @@ class Connector: self.loop.create_task(self._get_block_by_hash(hash)) elif topic == b"rawtx": self.last_zmq_msg = int(time.time()) - if self.deep_synchronization: - continue try: self.loop.create_task(self._new_transaction(Transaction(body, format="raw"))) except: