Commit ce6331b6 authored by ekam's avatar ekam

fix #1

parent 6e358508
......@@ -419,6 +419,8 @@ class Blockchain(util.PrintError):
return retval
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment