Skip to content

Commit f2d7cb1

Browse files
committed
fix(fast-inbox): regen scenarios respect the per-block message cap (A-1384)
The flip drops the per-block bundle to 256 messages; the sample-input regen scenarios put the whole message list into the first block, so cap them at one per-block bundle.
1 parent 952ae47 commit f2d7cb1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

yarn-project/prover-client/src/test/regenerate_rollup_sample_inputs.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/constants';
1+
import { MAX_L1_TO_L2_MSGS_PER_BLOCK } from '@aztec/constants';
22
import { EpochNumber } from '@aztec/foundation/branded-types';
33
import { timesAsync } from '@aztec/foundation/collection';
44
import { Fr } from '@aztec/foundation/curves/bn254';
@@ -45,7 +45,9 @@ describeOrSkip('prover/regenerate-rollup-sample-inputs', () => {
4545
dump: CircuitName[];
4646
}
4747

48-
const withMessages = NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP;
48+
// `makeCheckpoint` puts the scenario's whole message list into the first block, so the most a
49+
// scenario can carry is one full per-block bundle, not the per-checkpoint cap.
50+
const withMessages = MAX_L1_TO_L2_MSGS_PER_BLOCK;
4951

5052
const scenarios: Scenario[] = [
5153
{

0 commit comments

Comments
 (0)