Skip to content

Commit 122ecc2

Browse files
committed
Handle check_majority_oracles_synced result
Signed-off-by: cyc60 <avsysoev60@gmail.com>
1 parent 06944ef commit 122ecc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/exits/tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ async def update_exit_signatures(
3939
logger.info('Waiting for signatures update block %d to finalize...', update_block)
4040
return
4141

42-
if update_block:
43-
await _check_majority_oracles_synced(oracles, update_block)
42+
if update_block and not await _check_majority_oracles_synced(oracles, update_block):
43+
logger.info('Waiting for the majority of oracles to sync exit signatures')
44+
return
4445

4546
outdated_indexes = await _fetch_outdated_indexes(oracles, update_block)
4647
if outdated_indexes:

0 commit comments

Comments
 (0)