connector
This commit is contained in:
parent
661abc69bd
commit
9282eeffd9
@ -414,8 +414,9 @@ class Connector:
|
|||||||
raise Exception("duplicated block")
|
raise Exception("duplicated block")
|
||||||
if "previousblockhash" not in block :
|
if "previousblockhash" not in block :
|
||||||
return
|
return
|
||||||
self.log.critical(str(self.block_cache.get_last()))
|
lb = self.block_cache.get_last()
|
||||||
self.log.critical(str(block["previousblockhash"]))
|
if lb is None and not self.last_block_height:
|
||||||
|
return
|
||||||
if self.block_cache.get_last() != block["previousblockhash"]:
|
if self.block_cache.get_last() != block["previousblockhash"]:
|
||||||
if self.block_cache.get(block["previousblockhash"]) is None and self.last_block_height:
|
if self.block_cache.get(block["previousblockhash"]) is None and self.last_block_height:
|
||||||
self.log.critical("Connector error! Node out of sync "
|
self.log.critical("Connector error! Node out of sync "
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user