runner goes fatal if there's no path to the root branch

This commit is contained in:
tim
2024-10-13 15:37:38 -04:00
parent 58586931f3
commit 48af1455b2

View File

@@ -231,8 +231,7 @@ class BlockStateRunner(BlockProgressor):
try:
fork = await self.create_branch(chain)
except ValueError:
log.warning(f'Could not build a branch back to root! {hexstr(latest_block[chain.id].hash)} <-?- {hexstr(self.state.root_branch.head)}')
continue
fatal(f'Could not build a branch back to root! {hexstr(latest_block[chain.id].hash)} <-?- {hexstr(self.state.root_branch.head)}')
# noinspection PyBroadException
try:
if fork is not None: