connector

This commit is contained in:
4tochka 2019-06-03 22:14:14 +04:00
parent 9c849994a3
commit 1e031f2944
2 changed files with 2 additions and 3 deletions

View File

@ -195,7 +195,6 @@ class BlockLoader:
self.parent.block_preload.set(i, blocks[i]) self.parent.block_preload.set(i, blocks[i])
if blocks: if blocks:
if self.parent.utxo.checkpoints: if self.parent.utxo.checkpoints:
self.log.critical(str((self.parent.utxo.checkpoints[-1] ,i)))
if self.parent.utxo.checkpoints[-1] < i: if self.parent.utxo.checkpoints[-1] < i:
self.parent.utxo.checkpoints.append(i) self.parent.utxo.checkpoints.append(i)
else: else:

View File

@ -342,8 +342,8 @@ class Connector:
if not block: if not block:
h = await self.rpc.getblockhash(self.last_block_height + 1) h = await self.rpc.getblockhash(self.last_block_height + 1)
block = await self._get_block_by_hash(h) block = await self._get_block_by_hash(h)
block["checkpoint"] = h block["checkpoint"] = self.last_block_height + 1
block["height"] = h block["height"] = self.last_block_height + 1
self.loop.create_task(self._new_block(block)) self.loop.create_task(self._new_block(block))
except Exception as err: except Exception as err: