From 308455c08c9e45da04c910e9883687231e60e6f6 Mon Sep 17 00:00:00 2001 From: AztecBot Date: Thu, 12 Mar 2026 20:28:34 +0000 Subject: [PATCH] fix: set anvilSlotsInAnEpoch in e2e_offchain_payment to prevent finalization race The e2e_offchain_payment test simulates L1 reorgs but uses the default anvilSlotsInAnEpoch of 1, causing finalization to race ahead of the rollback target (finalized = latest - 2). This sets it to 32 (matching mainnet) like epochs_l1_reorgs does, so rollbacks have room. --- yarn-project/end-to-end/src/e2e_offchain_payment.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/end-to-end/src/e2e_offchain_payment.test.ts b/yarn-project/end-to-end/src/e2e_offchain_payment.test.ts index ffe2fd7ce271..13f86baca305 100644 --- a/yarn-project/end-to-end/src/e2e_offchain_payment.test.ts +++ b/yarn-project/end-to-end/src/e2e_offchain_payment.test.ts @@ -29,7 +29,9 @@ describe('e2e_offchain_payment', () => { jest.setTimeout(TIMEOUT); beforeAll(async () => { - ({ teardown, wallet, accounts, aztecNode, aztecNodeAdmin, cheatCodes } = await setup(2)); + ({ teardown, wallet, accounts, aztecNode, aztecNodeAdmin, cheatCodes } = await setup(2, { + anvilSlotsInAnEpoch: 32, + })); }); afterAll(() => teardown());