Nail in the coffin for vault issues... hopefully.
This commit is contained in:
@@ -93,6 +93,9 @@ class BlockState:
|
||||
|
||||
|
||||
def fork(self, block: Block):
|
||||
if block.hash == self.root_block.hash:
|
||||
return Fork([block.hash], height=block.height)
|
||||
|
||||
if block.height - self.ancestors[block.hash].height > 1:
|
||||
# noinspection PyTypeChecker
|
||||
return DisjointFork(block, self.root_block)
|
||||
|
||||
Reference in New Issue
Block a user