@aztec/sequencer-client 1.2.0 → 2.0.0-nightly.20250813

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import { MerkleTreeId, elapsed } from '@aztec/aztec.js';
2
+ import { pick } from '@aztec/foundation/collection';
2
3
  import type { Fr } from '@aztec/foundation/fields';
3
4
  import { createLogger } from '@aztec/foundation/log';
4
5
  import { retryUntil } from '@aztec/foundation/retry';
@@ -90,7 +91,7 @@ export async function buildBlock(
90
91
 
91
92
  type FullNodeBlockBuilderConfig = Pick<L1RollupConstants, 'l1GenesisTime' | 'slotDuration'> &
92
93
  Pick<ChainConfig, 'l1ChainId' | 'rollupVersion'> &
93
- Pick<SequencerConfig, 'txPublicSetupAllowList'>;
94
+ Pick<SequencerConfig, 'txPublicSetupAllowList' | 'fakeProcessingDelayPerTxMs'>;
94
95
 
95
96
  export class FullNodeBlockBuilder implements IFullNodeBlockBuilder {
96
97
  constructor(
@@ -101,13 +102,16 @@ export class FullNodeBlockBuilder implements IFullNodeBlockBuilder {
101
102
  private telemetryClient: TelemetryClient = getTelemetryClient(),
102
103
  ) {}
103
104
 
104
- public getConfig() {
105
- return {
106
- l1GenesisTime: this.config.l1GenesisTime,
107
- slotDuration: this.config.slotDuration,
108
- l1ChainId: this.config.l1ChainId,
109
- rollupVersion: this.config.rollupVersion,
110
- };
105
+ public getConfig(): FullNodeBlockBuilderConfig {
106
+ return pick(
107
+ this.config,
108
+ 'l1GenesisTime',
109
+ 'slotDuration',
110
+ 'l1ChainId',
111
+ 'rollupVersion',
112
+ 'txPublicSetupAllowList',
113
+ 'fakeProcessingDelayPerTxMs',
114
+ );
111
115
  }
112
116
 
113
117
  public updateConfig(config: FullNodeBlockBuilderConfig) {
@@ -136,7 +140,10 @@ export class FullNodeBlockBuilder implements IFullNodeBlockBuilder {
136
140
  publicTxSimulator,
137
141
  this.dateProvider,
138
142
  this.telemetryClient,
143
+ undefined,
144
+ this.config,
139
145
  );
146
+
140
147
  const validator = createValidatorForBlockBuilding(
141
148
  fork,
142
149
  this.contractDataSource,