Skip to content

Commit

Permalink
Merge branch 'fix/max_active_outbox_levels'
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Sep 27, 2024
2 parents d36571d + 4188b41 commit 0469a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge_indexer/handlers/rollup_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def update_proof(self):
bridge_withdraw_operation: BridgeWithdrawOperation
outbox_message = bridge_withdraw_operation.outbox_message

if head_data.level - outbox_message.level > self._protocol.smart_rollup_max_active_outbox_levels:
if head_data.level > outbox_message.level + self._protocol.smart_rollup_challenge_window + self._protocol.smart_rollup_max_active_outbox_levels:
continue

if await RollupCementedCommitment.filter(inbox_level__gte=outbox_message.level).count() == 0:
Expand Down

0 comments on commit 0469a1a

Please sign in to comment.