connector

This commit is contained in:
4tochka 2019-05-02 15:35:56 +04:00
parent 1971d7bbf3
commit 0e412c6643

View File

@ -298,11 +298,11 @@ class Connector:
self.deep_synchronization = False
q = time.time()
if self.deep_synchronization:
raw_block = self.block_preload.get(self.last_block_height + 1)
raw_block = self.block_preload.pop(self.last_block_height + 1)
if raw_block:
block = decode_block_tx(raw_block)
else:
h = self.block_hashes.get(self.last_block_height + 1)
h = self.block_hashes.pop(self.last_block_height + 1)
if h is None:
h = await self.rpc.getblockhash(self.last_block_height + 1)
if not self.block_hashes_preload_mutex: