From 48af1455b230a8f782c7371595d91a633701227e Mon Sep 17 00:00:00 2001 From: tim Date: Sun, 13 Oct 2024 15:37:38 -0400 Subject: [PATCH] runner goes fatal if there's no path to the root branch --- src/dexorder/runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dexorder/runner.py b/src/dexorder/runner.py index 726f43d..d1b4685 100644 --- a/src/dexorder/runner.py +++ b/src/dexorder/runner.py @@ -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: