runner goes fatal if there's no path to the root branch
This commit is contained in:
@@ -231,8 +231,7 @@ class BlockStateRunner(BlockProgressor):
|
|||||||
try:
|
try:
|
||||||
fork = await self.create_branch(chain)
|
fork = await self.create_branch(chain)
|
||||||
except ValueError:
|
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)}')
|
fatal(f'Could not build a branch back to root! {hexstr(latest_block[chain.id].hash)} <-?- {hexstr(self.state.root_branch.head)}')
|
||||||
continue
|
|
||||||
# noinspection PyBroadException
|
# noinspection PyBroadException
|
||||||
try:
|
try:
|
||||||
if fork is not None:
|
if fork is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user