Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down
Loading