Skip to content

Commit

Permalink
Tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Feb 22, 2024
1 parent 2e70c11 commit c58f1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge_indexer/handlers/rollup_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c58f1a0

Please sign in to comment.