1
0
This commit is contained in:
SomberNight
2018-03-27 20:17:37 +02:00
parent c9c7f34ddf
commit ec33463426

View File

@@ -317,6 +317,8 @@ class Blockchain(util.PrintError):
return bitsN << 24 | bitsBase
def can_connect(self, header, check_height=True):
if header is None:
return False
height = header['block_height']
if check_height and self.height() != height - 1:
#self.print_error("cannot connect at height", height)