diff --git a/yarn-project/validator-client/src/validator.integration.test.ts b/yarn-project/validator-client/src/validator.integration.test.ts index 37f6252475eb..7f0f791118bd 100644 --- a/yarn-project/validator-client/src/validator.integration.test.ts +++ b/yarn-project/validator-client/src/validator.integration.test.ts @@ -26,7 +26,7 @@ import { type L1RollupConstants, getTimestampForSlot } from '@aztec/stdlib/epoch import { GasFees } from '@aztec/stdlib/gas'; import { tryStop } from '@aztec/stdlib/interfaces/server'; import { computeInHashFromL1ToL2Messages } from '@aztec/stdlib/messaging'; -import type { BlockProposal } from '@aztec/stdlib/p2p'; +import { type BlockProposal, CheckpointProposal } from '@aztec/stdlib/p2p'; import { mockTx } from '@aztec/stdlib/testing'; import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees'; import { BlockHeader, type CheckpointGlobalVariables, Tx } from '@aztec/stdlib/tx'; @@ -522,12 +522,13 @@ describe('ValidatorClient Integration', () => { () => buildTxs(2), ); - // Create a checkpoint proposal with wrong archive root - const badProposal = await proposer.validator.createCheckpointProposal( + // Create a checkpoint proposal with wrong archive root directly, bypassing the + // validator's anti-equivocation guard (which prevents two proposals for the same slot) + const badProposal = await CheckpointProposal.createProposalFromSigner( checkpoint.header, Fr.random(), // Wrong archive root undefined, - proposerSigner.address, + payload => Promise.resolve(proposerSigner.sign(payload)), ); await attestorValidateBlocks(blocks);