connector
This commit is contained in:
parent
9c849994a3
commit
1e031f2944
@ -195,7 +195,6 @@ class BlockLoader:
|
||||
self.parent.block_preload.set(i, blocks[i])
|
||||
if blocks:
|
||||
if self.parent.utxo.checkpoints:
|
||||
self.log.critical(str((self.parent.utxo.checkpoints[-1] ,i)))
|
||||
if self.parent.utxo.checkpoints[-1] < i:
|
||||
self.parent.utxo.checkpoints.append(i)
|
||||
else:
|
||||
|
||||
@ -342,8 +342,8 @@ class Connector:
|
||||
if not block:
|
||||
h = await self.rpc.getblockhash(self.last_block_height + 1)
|
||||
block = await self._get_block_by_hash(h)
|
||||
block["checkpoint"] = h
|
||||
block["height"] = h
|
||||
block["checkpoint"] = self.last_block_height + 1
|
||||
block["height"] = self.last_block_height + 1
|
||||
|
||||
self.loop.create_task(self._new_block(block))
|
||||
except Exception as err:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user