Skip to content

fix(e2e): set anvilSlotsInAnEpoch in offchain payment test to prevent premature finalization#21393

Closed
AztecBot wants to merge 1 commit intomerge-train/fairiesfrom
claudebox/fix-offchain-payment-test
Closed

fix(e2e): set anvilSlotsInAnEpoch in offchain payment test to prevent premature finalization#21393
AztecBot wants to merge 1 commit intomerge-train/fairiesfrom
claudebox/fix-offchain-payment-test

Conversation

@AztecBot
Copy link
Collaborator

Summary

The e2e_offchain_payment test's reorg test case fails with "Cannot rollback to block 8 as it is before finalized 9" because PR #21156 (Properly compute finalized block) changed Anvil's default --slots-in-an-epoch to 1, causing blocks to be finalized almost immediately (finalized = latest - 2).

The fix sets anvilSlotsInAnEpoch: 32 in the test's setup, matching the same pattern used by epochs_l1_reorgs.parallel.test.ts which was updated in #21156.

Details

ClaudeBox log: https://claudebox.work/s/2cc546f52c926894?run=1

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 11, 2026
@ludamad
Copy link
Collaborator

ludamad commented Mar 12, 2026

Closing as duplicate — superseded by a newer attempt.

@ludamad ludamad closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants