From c58f1a0b0d3d1fff1b15d3ee57397a637fd206cb Mon Sep 17 00:00:00 2001 From: Igor Sereda Date: Thu, 22 Feb 2024 19:14:51 +0300 Subject: [PATCH] Tiny fix --- bridge_indexer/handlers/rollup_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_indexer/handlers/rollup_message.py b/bridge_indexer/handlers/rollup_message.py index 86bea42..7e13a3c 100644 --- a/bridge_indexer/handlers/rollup_message.py +++ b/bridge_indexer/handlers/rollup_message.py @@ -114,12 +114,12 @@ async def find_by_index(cls, outbox_level: int, index: int, ctx: DipDupContext): async def update_proof(cls, ctx: DipDupContext): datasource = ctx.get_http_datasource('rollup_node') - sync_level = await ctx.get_tzkt_datasource('tzkt').get_head_block() + head_data = await ctx.get_tzkt_datasource('tzkt').get_head_block() async for outbox_message in RollupOutboxMessage.filter( l1_withdrawals__isnull=True, l2_withdrawals__isnull=False, ): - if sync_level - outbox_message.level > 80640: # todo: avoid magic numbers + if head_data.level - outbox_message.level > 80640: # todo: avoid magic numbers # todo: mark expired transaction with terminal status "failed" continue