connector

This commit is contained in:
4tochka 2019-04-30 20:39:05 +04:00
parent cb3669e8a5
commit 56c1124ee4

View File

@ -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 "