connector
This commit is contained in:
parent
cb3669e8a5
commit
56c1124ee4
@ -412,7 +412,8 @@ class Connector:
|
||||
if self.block_cache.get(block["hash"]) is not None:
|
||||
self.log.error("duplicated block %s" % block["hash"])
|
||||
raise Exception("duplicated block")
|
||||
|
||||
if "previousblockhash" not in block:
|
||||
return
|
||||
if self.block_cache.get_last() != block["previousblockhash"]:
|
||||
if self.block_cache.get(block["previousblockhash"]) is None and self.last_block_height:
|
||||
self.log.critical("Connector error! Node out of sync "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user