@aztec/sequencer-client 0.0.1-commit.b655e406 → 0.0.1-commit.b8a057fa

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.
Files changed (165) hide show
  1. package/README.md +281 -21
  2. package/dest/client/index.d.ts +1 -1
  3. package/dest/client/sequencer-client.d.ts +41 -18
  4. package/dest/client/sequencer-client.d.ts.map +1 -1
  5. package/dest/client/sequencer-client.js +88 -42
  6. package/dest/config.d.ts +41 -8
  7. package/dest/config.d.ts.map +1 -1
  8. package/dest/config.js +153 -53
  9. package/dest/global_variable_builder/fee_predictor.d.ts +37 -0
  10. package/dest/global_variable_builder/fee_predictor.d.ts.map +1 -0
  11. package/dest/global_variable_builder/fee_predictor.js +138 -0
  12. package/dest/global_variable_builder/fee_provider.d.ts +21 -0
  13. package/dest/global_variable_builder/fee_provider.d.ts.map +1 -0
  14. package/dest/global_variable_builder/fee_provider.js +80 -0
  15. package/dest/global_variable_builder/global_builder.d.ts +20 -29
  16. package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
  17. package/dest/global_variable_builder/global_builder.js +28 -72
  18. package/dest/global_variable_builder/index.d.ts +4 -2
  19. package/dest/global_variable_builder/index.d.ts.map +1 -1
  20. package/dest/global_variable_builder/index.js +2 -0
  21. package/dest/index.d.ts +2 -3
  22. package/dest/index.d.ts.map +1 -1
  23. package/dest/index.js +1 -2
  24. package/dest/publisher/config.d.ts +59 -20
  25. package/dest/publisher/config.d.ts.map +1 -1
  26. package/dest/publisher/config.js +134 -34
  27. package/dest/publisher/index.d.ts +2 -1
  28. package/dest/publisher/index.d.ts.map +1 -1
  29. package/dest/publisher/l1_to_l2_messaging.d.ts +21 -0
  30. package/dest/publisher/l1_to_l2_messaging.d.ts.map +1 -0
  31. package/dest/publisher/l1_to_l2_messaging.js +70 -0
  32. package/dest/publisher/l1_tx_failed_store/factory.d.ts +11 -0
  33. package/dest/publisher/l1_tx_failed_store/factory.d.ts.map +1 -0
  34. package/dest/publisher/l1_tx_failed_store/factory.js +22 -0
  35. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts +98 -0
  36. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts.map +1 -0
  37. package/dest/publisher/l1_tx_failed_store/failed_tx_store.js +68 -0
  38. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts +15 -0
  39. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts.map +1 -0
  40. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.js +36 -0
  41. package/dest/publisher/l1_tx_failed_store/index.d.ts +4 -0
  42. package/dest/publisher/l1_tx_failed_store/index.d.ts.map +1 -0
  43. package/dest/publisher/l1_tx_failed_store/index.js +3 -0
  44. package/dest/publisher/sequencer-bundle-simulator.d.ts +96 -0
  45. package/dest/publisher/sequencer-bundle-simulator.d.ts.map +1 -0
  46. package/dest/publisher/sequencer-bundle-simulator.js +198 -0
  47. package/dest/publisher/sequencer-publisher-factory.d.ts +15 -8
  48. package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -1
  49. package/dest/publisher/sequencer-publisher-factory.js +28 -4
  50. package/dest/publisher/sequencer-publisher-metrics.d.ts +3 -3
  51. package/dest/publisher/sequencer-publisher-metrics.d.ts.map +1 -1
  52. package/dest/publisher/sequencer-publisher-metrics.js +23 -86
  53. package/dest/publisher/sequencer-publisher.d.ts +164 -96
  54. package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
  55. package/dest/publisher/sequencer-publisher.js +1305 -416
  56. package/dest/publisher/write_json.d.ts +11 -0
  57. package/dest/publisher/write_json.d.ts.map +1 -0
  58. package/dest/publisher/write_json.js +57 -0
  59. package/dest/sequencer/automine/automine_factory.d.ts +56 -0
  60. package/dest/sequencer/automine/automine_factory.d.ts.map +1 -0
  61. package/dest/sequencer/automine/automine_factory.js +85 -0
  62. package/dest/sequencer/automine/automine_sequencer.d.ts +189 -0
  63. package/dest/sequencer/automine/automine_sequencer.d.ts.map +1 -0
  64. package/dest/sequencer/automine/automine_sequencer.js +690 -0
  65. package/dest/sequencer/automine/index.d.ts +3 -0
  66. package/dest/sequencer/automine/index.d.ts.map +1 -0
  67. package/dest/sequencer/automine/index.js +2 -0
  68. package/dest/sequencer/checkpoint_proposal_job.d.ts +158 -0
  69. package/dest/sequencer/checkpoint_proposal_job.d.ts.map +1 -0
  70. package/dest/sequencer/checkpoint_proposal_job.js +1801 -0
  71. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts +34 -0
  72. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts.map +1 -0
  73. package/dest/sequencer/checkpoint_proposal_job_metrics.js +72 -0
  74. package/dest/sequencer/checkpoint_voter.d.ts +34 -0
  75. package/dest/sequencer/checkpoint_voter.d.ts.map +1 -0
  76. package/dest/sequencer/checkpoint_voter.js +106 -0
  77. package/dest/sequencer/config.d.ts +3 -2
  78. package/dest/sequencer/config.d.ts.map +1 -1
  79. package/dest/sequencer/errors.d.ts +1 -1
  80. package/dest/sequencer/errors.d.ts.map +1 -1
  81. package/dest/sequencer/events.d.ts +103 -0
  82. package/dest/sequencer/events.d.ts.map +1 -0
  83. package/dest/sequencer/events.js +1 -0
  84. package/dest/sequencer/index.d.ts +4 -2
  85. package/dest/sequencer/index.d.ts.map +1 -1
  86. package/dest/sequencer/index.js +3 -1
  87. package/dest/sequencer/metrics.d.ts +48 -4
  88. package/dest/sequencer/metrics.d.ts.map +1 -1
  89. package/dest/sequencer/metrics.js +257 -50
  90. package/dest/sequencer/requests_tracker.d.ts +22 -0
  91. package/dest/sequencer/requests_tracker.d.ts.map +1 -0
  92. package/dest/sequencer/requests_tracker.js +33 -0
  93. package/dest/sequencer/sequencer.d.ts +253 -148
  94. package/dest/sequencer/sequencer.d.ts.map +1 -1
  95. package/dest/sequencer/sequencer.js +1208 -598
  96. package/dest/sequencer/types.d.ts +3 -0
  97. package/dest/sequencer/types.d.ts.map +1 -0
  98. package/dest/sequencer/types.js +1 -0
  99. package/dest/sequencer/utils.d.ts +14 -8
  100. package/dest/sequencer/utils.d.ts.map +1 -1
  101. package/dest/sequencer/utils.js +7 -4
  102. package/dest/test/index.d.ts +8 -9
  103. package/dest/test/index.d.ts.map +1 -1
  104. package/dest/test/mock_checkpoint_builder.d.ts +95 -0
  105. package/dest/test/mock_checkpoint_builder.d.ts.map +1 -0
  106. package/dest/test/mock_checkpoint_builder.js +231 -0
  107. package/dest/test/utils.d.ts +67 -0
  108. package/dest/test/utils.d.ts.map +1 -0
  109. package/dest/test/utils.js +122 -0
  110. package/package.json +34 -30
  111. package/src/client/sequencer-client.ts +118 -66
  112. package/src/config.ts +181 -62
  113. package/src/global_variable_builder/README.md +44 -0
  114. package/src/global_variable_builder/fee_predictor.ts +182 -0
  115. package/src/global_variable_builder/fee_provider.ts +97 -0
  116. package/src/global_variable_builder/global_builder.ts +45 -106
  117. package/src/global_variable_builder/index.ts +3 -1
  118. package/src/index.ts +1 -7
  119. package/src/publisher/config.ts +190 -46
  120. package/src/publisher/index.ts +3 -0
  121. package/src/publisher/l1_to_l2_messaging.ts +85 -0
  122. package/src/publisher/l1_tx_failed_store/factory.ts +32 -0
  123. package/src/publisher/l1_tx_failed_store/failed_tx_store.ts +164 -0
  124. package/src/publisher/l1_tx_failed_store/file_store_failed_tx_store.ts +47 -0
  125. package/src/publisher/l1_tx_failed_store/index.ts +3 -0
  126. package/src/publisher/sequencer-bundle-simulator.ts +254 -0
  127. package/src/publisher/sequencer-publisher-factory.ts +45 -14
  128. package/src/publisher/sequencer-publisher-metrics.ts +19 -71
  129. package/src/publisher/sequencer-publisher.ts +1109 -538
  130. package/src/publisher/write_json.ts +78 -0
  131. package/src/sequencer/README.md +243 -0
  132. package/src/sequencer/automine/README.md +60 -0
  133. package/src/sequencer/automine/automine_factory.ts +152 -0
  134. package/src/sequencer/automine/automine_sequencer.ts +796 -0
  135. package/src/sequencer/automine/index.ts +6 -0
  136. package/src/sequencer/checkpoint_proposal_job.ts +1652 -0
  137. package/src/sequencer/checkpoint_proposal_job_metrics.ts +128 -0
  138. package/src/sequencer/checkpoint_voter.ts +119 -0
  139. package/src/sequencer/config.ts +2 -1
  140. package/src/sequencer/events.ts +88 -0
  141. package/src/sequencer/index.ts +3 -1
  142. package/src/sequencer/metrics.ts +330 -62
  143. package/src/sequencer/requests_tracker.ts +43 -0
  144. package/src/sequencer/sequencer.ts +1033 -777
  145. package/src/sequencer/types.ts +6 -0
  146. package/src/sequencer/utils.ts +18 -9
  147. package/src/test/index.ts +7 -8
  148. package/src/test/mock_checkpoint_builder.ts +323 -0
  149. package/src/test/utils.ts +218 -0
  150. package/dest/sequencer/block_builder.d.ts +0 -27
  151. package/dest/sequencer/block_builder.d.ts.map +0 -1
  152. package/dest/sequencer/block_builder.js +0 -130
  153. package/dest/sequencer/timetable.d.ts +0 -50
  154. package/dest/sequencer/timetable.d.ts.map +0 -1
  155. package/dest/sequencer/timetable.js +0 -137
  156. package/dest/tx_validator/nullifier_cache.d.ts +0 -14
  157. package/dest/tx_validator/nullifier_cache.d.ts.map +0 -1
  158. package/dest/tx_validator/nullifier_cache.js +0 -24
  159. package/dest/tx_validator/tx_validator_factory.d.ts +0 -17
  160. package/dest/tx_validator/tx_validator_factory.d.ts.map +0 -1
  161. package/dest/tx_validator/tx_validator_factory.js +0 -53
  162. package/src/sequencer/block_builder.ts +0 -218
  163. package/src/sequencer/timetable.ts +0 -188
  164. package/src/tx_validator/nullifier_cache.ts +0 -30
  165. package/src/tx_validator/tx_validator_factory.ts +0 -132
@@ -1,219 +1,324 @@
1
- import { L2Block } from '@aztec/aztec.js/block';
2
- import type { EpochCache } from '@aztec/epoch-cache';
3
- import { type RollupContract } from '@aztec/ethereum';
1
+ import { type EpochCache } from '@aztec/epoch-cache';
2
+ import { type RollupContract } from '@aztec/ethereum/contracts';
3
+ import { BlockNumber, CheckpointNumber, EpochNumber, SlotNumber } from '@aztec/foundation/branded-types';
4
+ import { Fr } from '@aztec/foundation/curves/bn254';
4
5
  import { EthAddress } from '@aztec/foundation/eth-address';
5
- import { Signature } from '@aztec/foundation/eth-signature';
6
- import { Fr } from '@aztec/foundation/fields';
7
- import { type DateProvider } from '@aztec/foundation/timer';
8
- import { type TypedEventEmitter } from '@aztec/foundation/types';
6
+ import { type Logger } from '@aztec/foundation/log';
7
+ import { RunningPromise } from '@aztec/foundation/running-promise';
8
+ import type { DateProvider } from '@aztec/foundation/timer';
9
+ import type { TypedEventEmitter } from '@aztec/foundation/types';
9
10
  import type { P2P } from '@aztec/p2p';
10
11
  import type { SlasherClientInterface } from '@aztec/slasher';
11
- import { CommitteeAttestation, CommitteeAttestationsAndSigners, type L2BlockSource, type ValidateBlockResult } from '@aztec/stdlib/block';
12
- import { type L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
13
- import { type IFullNodeBlockBuilder, type PublicProcessorLimits, type WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
12
+ import type { BlockData, L2BlockSink, L2BlockSource, ProposedCheckpointSink, ValidateCheckpointResult } from '@aztec/stdlib/block';
13
+ import { type Checkpoint, type ProposedCheckpointData } from '@aztec/stdlib/checkpoint';
14
+ import type { ChainConfig } from '@aztec/stdlib/config';
15
+ import { type ResolvedSequencerConfig, type SequencerConfig, type WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
14
16
  import type { L1ToL2MessageSource } from '@aztec/stdlib/messaging';
15
- import { Tx } from '@aztec/stdlib/tx';
17
+ import { ProposerTimetable } from '@aztec/stdlib/timetable';
16
18
  import { type TelemetryClient, type Tracer } from '@aztec/telemetry-client';
17
- import type { ValidatorClient } from '@aztec/validator-client';
19
+ import { FullNodeCheckpointsBuilder, NodeKeystoreAdapter, type ValidatorClient } from '@aztec/validator-client';
18
20
  import type { GlobalVariableBuilder } from '../global_variable_builder/global_builder.js';
19
21
  import type { SequencerPublisherFactory } from '../publisher/sequencer-publisher-factory.js';
20
- import type { Action, InvalidateBlockRequest, SequencerPublisher } from '../publisher/sequencer-publisher.js';
21
- import type { SequencerConfig } from './config.js';
22
- import { SequencerTimetable } from './timetable.js';
23
- import { SequencerState, type SequencerStateWithSlot } from './utils.js';
22
+ import type { InvalidateCheckpointRequest, SequencerPublisher } from '../publisher/sequencer-publisher.js';
23
+ import { CheckpointProposalJob } from './checkpoint_proposal_job.js';
24
+ import type { SequencerEvents } from './events.js';
25
+ import { RequestsTracker } from './requests_tracker.js';
26
+ import type { SequencerRollupConstants } from './types.js';
27
+ import { SequencerState } from './utils.js';
24
28
  export { SequencerState };
25
- type SequencerRollupConstants = Pick<L1RollupConstants, 'ethereumSlotDuration' | 'l1GenesisTime' | 'slotDuration'>;
26
- export type SequencerEvents = {
27
- ['state-changed']: (args: {
28
- oldState: SequencerState;
29
- newState: SequencerState;
30
- secondsIntoSlot?: number;
31
- slotNumber?: bigint;
32
- }) => void;
33
- ['proposer-rollup-check-failed']: (args: {
34
- reason: string;
35
- }) => void;
36
- ['tx-count-check-failed']: (args: {
37
- minTxs: number;
38
- availableTxs: number;
39
- }) => void;
40
- ['block-build-failed']: (args: {
41
- reason: string;
42
- }) => void;
43
- ['block-publish-failed']: (args: {
44
- successfulActions?: Action[];
45
- failedActions?: Action[];
46
- sentActions?: Action[];
47
- expiredActions?: Action[];
48
- }) => void;
49
- ['block-published']: (args: {
50
- blockNumber: number;
51
- slot: number;
52
- }) => void;
29
+ /** Slot snapshot used to prepare a checkpoint proposal. */
30
+ type SequencerSlotContext = {
31
+ slot: SlotNumber;
32
+ targetSlot: SlotNumber;
33
+ epoch: EpochNumber;
34
+ targetEpoch: EpochNumber;
35
+ ts: bigint;
36
+ nowSeconds: bigint;
53
37
  };
54
38
  declare const Sequencer_base: new () => TypedEventEmitter<SequencerEvents>;
55
39
  /**
56
40
  * Sequencer client
57
- * - Wins a period of time to become the sequencer (depending on finalized protocol).
58
- * - Chooses a set of txs from the tx pool to be in the rollup.
59
- * - Simulate the rollup of txs.
60
- * - Adds proof requests to the request pool (not for this milestone).
61
- * - Receives results to those proofs from the network (repeats as necessary) (not for this milestone).
62
- * - Publishes L1 tx(s) to the rollup contract via RollupPublisher.
41
+ * - Checks whether it is elected as proposer for the next slot
42
+ * - Builds multiple blocks and broadcasts them
43
+ * - Collects attestations for the checkpoint
44
+ * - Publishes the checkpoint to L1
45
+ * - Votes for proposals and slashes on L1
63
46
  */
64
47
  export declare class Sequencer extends Sequencer_base {
65
48
  protected publisherFactory: SequencerPublisherFactory;
66
- protected validatorClient: ValidatorClient | undefined;
49
+ protected validatorClient: ValidatorClient;
67
50
  protected globalsBuilder: GlobalVariableBuilder;
68
51
  protected p2pClient: P2P;
69
52
  protected worldState: WorldStateSynchronizer;
70
53
  protected slasherClient: SlasherClientInterface | undefined;
71
- protected l2BlockSource: L2BlockSource;
54
+ protected l2BlockSource: L2BlockSource & L2BlockSink & ProposedCheckpointSink;
72
55
  protected l1ToL2MessageSource: L1ToL2MessageSource;
73
- protected blockBuilder: IFullNodeBlockBuilder;
56
+ protected checkpointsBuilder: FullNodeCheckpointsBuilder;
74
57
  protected l1Constants: SequencerRollupConstants;
75
58
  protected dateProvider: DateProvider;
76
59
  protected epochCache: EpochCache;
77
60
  protected rollupContract: RollupContract;
78
- protected config: SequencerConfig;
79
61
  protected telemetry: TelemetryClient;
80
- protected log: import("@aztec/foundation/log").Logger;
81
- private runningPromise?;
82
- private pollingIntervalMs;
83
- private maxTxsPerBlock;
84
- private minTxsPerBlock;
85
- private maxL1TxInclusionTimeIntoSlot;
62
+ protected log: Logger;
63
+ protected runningPromise?: RunningPromise;
86
64
  private state;
87
- private maxBlockSizeInBytes;
88
- private maxBlockGas;
65
+ private stateSlotNumber;
66
+ /** Wall-clock time (ms, via the date provider) at which the current state was entered. */
67
+ private stateEnteredAtMs;
89
68
  private metrics;
90
- private lastBlockPublished;
91
- private governanceProposerPayload;
92
- /** The last slot for which we attempted to vote when sync failed, to prevent duplicate attempts. */
93
- private lastSlotForVoteWhenSyncFailed;
94
- /** The maximum number of seconds that the sequencer can be into a slot to transition to a particular state. */
95
- protected timetable: SequencerTimetable;
96
- protected enforceTimeTable: boolean;
97
- protected publisher: SequencerPublisher | undefined;
98
- constructor(publisherFactory: SequencerPublisherFactory, validatorClient: ValidatorClient | undefined, // During migration the validator client can be inactive
99
- globalsBuilder: GlobalVariableBuilder, p2pClient: P2P, worldState: WorldStateSynchronizer, slasherClient: SlasherClientInterface | undefined, l2BlockSource: L2BlockSource, l1ToL2MessageSource: L1ToL2MessageSource, blockBuilder: IFullNodeBlockBuilder, l1Constants: SequencerRollupConstants, dateProvider: DateProvider, epochCache: EpochCache, rollupContract: RollupContract, config: SequencerConfig, telemetry?: TelemetryClient, log?: import("@aztec/foundation/log").Logger);
100
- get tracer(): Tracer;
101
- getValidatorAddresses(): EthAddress[] | undefined;
102
- getConfig(): SequencerConfig;
69
+ private checkpointProposalJobMetrics;
70
+ private readonly stateLog;
71
+ /** The last slot for which we attempted to perform our fallback duties (votes and/or prune) with degraded block production */
72
+ private lastSlotForFallbackAction;
73
+ /** The (checkpoint, slot) of the last invalidation request we successfully simulated, to prevent
74
+ * re-simulating and re-submitting the same invalidation across the many ticks within a single slot. */
75
+ private lastInvalidationAttempt;
76
+ /** The last slot for which we logged "no committee" warning, to avoid spam */
77
+ private lastSlotForNoCommitteeWarning;
78
+ /** The last slot for which we triggered a checkpoint proposal job, to prevent duplicate attempts. */
79
+ protected lastSlotForCheckpointProposalJob: SlotNumber | undefined;
80
+ /** Last successful checkpoint proposed */
81
+ private lastCheckpointProposed;
82
+ /** The last epoch for which we logged strategy comparison in fisherman mode. */
83
+ private lastEpochForStrategyComparison;
84
+ /** The last checkpoint proposal job, tracked so we can await its pending L1 submission during shutdown. */
85
+ protected lastCheckpointProposalJob: CheckpointProposalJob | undefined;
103
86
  /**
104
- * Updates sequencer config by the defined values in the config on input.
105
- * @param config - New parameters.
87
+ * In-flight fire-and-forget requests that {@link stop} interrupts and drains, and {@link pause} awaits
88
+ * untouched: the checkpoint proposal jobs' backgrounded L1 submissions (each job is handed this shared
89
+ * tracker) plus the sequencer's own fallback submissions (votes/prune when we cannot build, or
90
+ * escape-hatch votes). Each fallback send is gated by its wrapper publisher's interruptible target-slot
91
+ * sleep; the tracked interrupt wakes that sleep so the send short-circuits without publishing. A wrapper
92
+ * is created for a single send and is never restarted, so once interrupted its sleeper can never publish
93
+ * a stale-slot tx, even after the pooled publishers are restarted by a later {@link start}.
106
94
  */
107
- updateConfig(config: SequencerConfig): void;
108
- private setTimeTable;
109
- init(): Promise<void>;
95
+ protected readonly pendingRequests: RequestsTracker;
96
+ /** Proposer schedule and block sub-slot timetable for the sequencer, rebuilt on every config update. */
97
+ protected timetable: ProposerTimetable;
98
+ /** Config for the sequencer */
99
+ protected config: ResolvedSequencerConfig;
100
+ private readonly signatureContext;
101
+ constructor(publisherFactory: SequencerPublisherFactory, validatorClient: ValidatorClient, globalsBuilder: GlobalVariableBuilder, p2pClient: P2P, worldState: WorldStateSynchronizer, slasherClient: SlasherClientInterface | undefined, l2BlockSource: L2BlockSource & L2BlockSink & ProposedCheckpointSink, l1ToL2MessageSource: L1ToL2MessageSource, checkpointsBuilder: FullNodeCheckpointsBuilder, l1Constants: SequencerRollupConstants, dateProvider: DateProvider, epochCache: EpochCache, rollupContract: RollupContract, config: SequencerConfig & Pick<ChainConfig, 'l1ChainId' | 'rollupAddress'>, telemetry?: TelemetryClient, log?: Logger);
110
102
  /**
111
- * Starts the sequencer and moves to IDLE state.
103
+ * Updates sequencer config by the defined values and rebuilds the timetable.
104
+ *
105
+ * The merged config is validated against a candidate before being committed: {@link buildTimetable} may
106
+ * reject the candidate (invalid timing geometry, or per-block allocation multipliers below the network
107
+ * minimums). On rejection we leave `this.config` and `this.timetable` untouched and rethrow, so a bad update
108
+ * never leaves the sequencer running with a rejected config and a stale timetable.
109
+ */
110
+ updateConfig(config: Partial<SequencerConfig>): void;
111
+ /**
112
+ * Builds the proposer timetable from the given config and L1 constants via the shared
113
+ * {@link buildProposerTimetable} helper, so the sequencer derives the same blocks-per-checkpoint as the p2p
114
+ * layer and `getNodeInfo`. The fast local/e2e profile and budget clamping happen inside
115
+ * {@link ProposerTimetable}.
116
+ *
117
+ * Throws if the timing geometry is invalid or the per-block allocation multipliers are below the network
118
+ * minimums; callers must treat a throw as a rejected config and not commit it.
119
+ */
120
+ private buildTimetable;
121
+ /**
122
+ * Checks this node's configured per-block allocation against the network admission limit. A node
123
+ * advertises and admits txs up to the limit derived from the network-minimum multipliers (see
124
+ * {@link computeNetworkTxGasLimits}).
125
+ *
126
+ * Fails startup (and runtime config updates) only when the configured per-block allocation *multipliers*
127
+ * (`perBlockAllocationMultiplier` / `perBlockDAAllocationMultiplier`) are below the network minimums: such
128
+ * a node would accept txs over RPC/gossip that its builder can never pack into a block regardless of block
129
+ * size. Operators may configure a higher (more generous) multiplier, but not a lower one.
130
+ *
131
+ * When the multipliers meet the floor but an absolute per-block gas cap (`maxDABlockGas` / `maxL2BlockGas`)
132
+ * shrinks the builder's effective grant below the network limit, this is legitimate operator
133
+ * restrictiveness — the node simply builds smaller blocks and such txs stay in the pool for other
134
+ * proposers — so we only log a warning rather than failing startup. Restrictive tx-count caps
135
+ * (`maxTxsPerBlock` / `maxTxsPerCheckpoint`) can likewise make the builder skip admitted txs; they are
136
+ * intentionally not modeled here for the same reason.
137
+ */
138
+ private assertConfigMeetsNetworkTxLimits;
139
+ /** Initializes the sequencer (precomputes tables). Takes about 3s. */
140
+ init(): void;
141
+ /**
142
+ * Starts (or restarts) the sequencer and moves it to the IDLE state. Idempotent: a start while already
143
+ * running is a no-op, so it never orphans the previous poll loop. A start while STOPPING throws, since the
144
+ * in-flight stop would mark the fresh loop's state STOPPED and orphan it — silently doing nothing would
145
+ * leave the caller believing the sequencer is running when it is on its way to STOPPED. Safe to call after
146
+ * a previous {@link stop} has resolved; the caller must also restart the publishers (see
147
+ * {@link SequencerClient.start}) so L1 publishing is re-enabled.
112
148
  */
113
149
  start(): void;
150
+ /** Triggers an immediate run of the sequencer, bypassing the polling interval. */
151
+ trigger(): Promise<void> | undefined;
114
152
  /**
115
- * Stops the sequencer from processing txs and moves to STOPPED state.
153
+ * Stops the sequencer from building blocks and moves it to STOPPED state, interrupting the in-flight
154
+ * work() iteration and its pending L1 submissions for a fast shutdown, then draining before returning.
155
+ * Idempotent: a second call while already stopped or stopping is a no-op. Lifecycle calls are expected
156
+ * to be serialized by the caller. For a restartable pause that lets in-flight work finish untouched
157
+ * (e.g. around a test clock warp), use {@link pause} instead.
116
158
  */
117
159
  stop(): Promise<void>;
118
160
  /**
119
- * Returns the current state of the sequencer.
120
- * @returns An object with a state entry with one of SequencerState.
161
+ * Gracefully pauses block production so the sequencer can later be resumed with {@link start}: halts the
162
+ * poll loop and waits for the in-flight work() iteration and every pending L1 submission / fallback send
163
+ * to finish, without interrupting them. No interrupt lands mid-build, so no spurious checkpoint-error is
164
+ * emitted and no enqueued checkpoint is dropped. Deliberately does not stop inner services (validator/HA
165
+ * signer, publishers), so the slashing-protection store stays open and the sequencer stays restartable.
166
+ * Used by tests that pause sequencers around an L1 clock warp. Idempotent.
121
167
  */
168
+ pause(): Promise<void>;
169
+ /** Main sequencer loop with a try/catch */
170
+ protected safeWork(): Promise<void>;
171
+ /** Returns the current state of the sequencer. */
122
172
  status(): {
123
173
  state: SequencerState;
124
174
  };
125
175
  /**
126
- * @notice Performs most of the sequencer duties:
127
- * - Checks if we are up to date
128
- * - If we are and we are the sequencer, collect txs and build a block
129
- * - Collect attestations for the block
130
- * - Submit block
131
- * - If our block for some reason is not included, revert the state
176
+ * Main sequencer loop:
177
+ * - Checks if we are up to date
178
+ * - If we are and we are the sequencer, collect txs and build blocks
179
+ * - Build multiple blocks per slot when configured
180
+ * - Collect attestations for the final block
181
+ * - Submit checkpoint
132
182
  */
133
- protected work(): Promise<void>;
134
- /** Tries building a block proposal, and if successful, enqueues it for publishing. */
135
- private tryBuildBlockAndEnqueuePublish;
136
- protected safeWork(): Promise<void>;
183
+ protected work(): Promise<Checkpoint | undefined>;
184
+ /** Returns slot and target slot from a single clock snapshot. */
185
+ protected getSlotContextInNextL1Slot(): SequencerSlotContext;
137
186
  /**
138
- * Sets the sequencer state and checks if we have enough time left in the slot to transition to the new state.
139
- * @param proposedState - The new state to transition to.
140
- * @param slotNumber - The current slot number.
141
- * @param force - Whether to force the transition even if the sequencer is stopped.
187
+ * Prepares the checkpoint proposal by performing all necessary checks and setup.
188
+ * This is the initial step in the main loop.
189
+ * @returns CheckpointProposalJob if successful, undefined if we are not yet synced or are not the proposer.
142
190
  */
143
- setState(proposedState: SequencerStateWithSlot, slotNumber: bigint, opts?: {
144
- force?: boolean;
145
- }): void;
146
- setState(proposedState: Exclude<SequencerState, SequencerStateWithSlot>, slotNumber?: undefined, opts?: {
147
- force?: boolean;
148
- }): void;
149
- private dropFailedTxsFromP2P;
150
- protected getBlockBuilderOptions(slot: number): PublicProcessorLimits;
191
+ protected prepareCheckpointProposal(slot: SlotNumber, targetSlot: SlotNumber, epoch: EpochNumber, targetEpoch: EpochNumber, ts: bigint, nowSeconds: bigint): Promise<CheckpointProposalJob | undefined>;
192
+ protected createCheckpointProposalJob(targetSlot: SlotNumber, targetEpoch: EpochNumber, checkpointNumber: CheckpointNumber, syncedToBlockNumber: BlockNumber, checkpointedCheckpointNumber: CheckpointNumber, proposer: EthAddress | undefined, publisher: SequencerPublisher, attestorAddress: EthAddress, invalidateCheckpoint: InvalidateCheckpointRequest | undefined, proposedCheckpointData?: ProposedCheckpointData): CheckpointProposalJob;
151
193
  /**
152
- * @notice Build and propose a block to the chain
153
- *
154
- * @dev MUST throw instead of exiting early to ensure that world-state
155
- * is being rolled back if the block is dropped.
156
- *
157
- * @param pendingTxs - Iterable of pending transactions to construct the block from
158
- * @param proposalHeader - The partial header constructed for the proposal
159
- * @param newGlobalVariables - The global variables for the new block
160
- * @param proposerAddress - The address of the proposer
194
+ * Returns the current sequencer state.
161
195
  */
162
- private buildBlockAndEnqueuePublish;
163
- protected collectAttestations(block: L2Block, txs: Tx[], proposerAddress: EthAddress | undefined): Promise<CommitteeAttestation[] | undefined>;
196
+ getState(): SequencerState;
164
197
  /**
165
- * Publishes the L2Block to the rollup contract.
166
- * @param block - The L2Block to be published.
198
+ * Internal helper for setting the sequencer state. Pure: sets the state, emits `state-changed`, and
199
+ * records metrics. Timing deadlines are queried explicitly at the relevant call sites, not gated here.
200
+ * @param proposedState - The new state to transition to.
201
+ * @param slotNumber - The target slot being proposed for, emitted as `targetSlot` on the event payload
202
+ * and used to anchor `secondsIntoBuildFrame`. Undefined for lifecycle states with no associated slot.
203
+ * @param force - Whether to force the transition even if the sequencer is stopped.
167
204
  */
168
- protected enqueuePublishL2Block(block: L2Block, attestationsAndSigners: CommitteeAttestationsAndSigners, attestationsAndSignersSignature: Signature, invalidateBlock: InvalidateBlockRequest | undefined, publisher: SequencerPublisher): Promise<void>;
205
+ protected setState(proposedState: SequencerState, slotNumber: SlotNumber | undefined, opts?: {
206
+ force?: boolean;
207
+ }): void;
169
208
  /**
170
209
  * Returns whether all dependencies have caught up.
171
210
  * We don't check against the previous block submitted since it may have been reorg'd out.
172
211
  */
173
212
  protected checkSync(args: {
174
213
  ts: bigint;
175
- slot: bigint;
176
- }): Promise<{
177
- block?: L2Block;
178
- blockNumber: number;
179
- archive: Fr;
180
- l1Timestamp: bigint;
181
- pendingChainValidationStatus: ValidateBlockResult;
182
- } | undefined>;
183
- /**
184
- * Enqueues governance and slashing votes with the publisher. Does not block.
185
- * @param publisher - The publisher to enqueue votes with
186
- * @param attestorAddress - The attestor address to use for signing
187
- * @param slot - The slot number
188
- * @param timestamp - The timestamp for the votes
189
- * @param context - Optional context for logging (e.g., block number)
190
- * @returns A tuple of [governanceEnqueued, slashingEnqueued]
191
- */
192
- protected enqueueGovernanceAndSlashingVotes(publisher: SequencerPublisher, attestorAddress: EthAddress, slot: bigint, timestamp: bigint): [Promise<boolean> | undefined, Promise<boolean> | undefined];
214
+ slot: SlotNumber;
215
+ }): Promise<SequencerSyncCheckResult | undefined>;
193
216
  /**
194
217
  * Checks if we are the proposer for the next slot.
195
218
  * @returns True if we can propose, and the proposer address (undefined if anyone can propose)
196
219
  */
197
- protected checkCanPropose(slot: bigint): Promise<[boolean, EthAddress | undefined]>;
220
+ protected checkCanPropose(targetSlot: SlotNumber): Promise<[boolean, EthAddress | undefined]>;
198
221
  /**
199
- * Tries to vote on slashing actions and governance when the sync check fails but we're past the max time for initializing a proposal.
200
- * This allows the sequencer to participate in governance/slashing votes even when it cannot build blocks.
222
+ * Tries to vote on slashing actions and governance and to prune when we cannot build and are past the
223
+ * block-building window. This allows the sequencer to participate in governance/slashing votes even when it
224
+ * cannot build blocks, and to prune the pending chain so it can recover from bad data that is blocking sync.
201
225
  */
202
- protected tryVoteWhenSyncFails(args: {
203
- slot: bigint;
204
- ts: bigint;
226
+ protected tryVoteAndPruneWhenCannotBuild(args: {
227
+ slot: SlotNumber;
228
+ targetSlot: SlotNumber;
229
+ }): Promise<void>;
230
+ private tryEnqueuePruneIfPrunable;
231
+ /**
232
+ * Tries to vote on slashing actions and governance proposals when escape hatch is open.
233
+ * This allows the sequencer to participate in voting without performing checkpoint proposal work.
234
+ */
235
+ protected tryVoteWhenEscapeHatchOpen(args: {
236
+ slot: SlotNumber;
237
+ targetSlot: SlotNumber;
238
+ proposer: EthAddress | undefined;
205
239
  }): Promise<void>;
206
240
  /**
207
241
  * Considers invalidating a block if the pending chain is invalid. Depends on how long the invalid block
208
242
  * has been there without being invalidated and whether the sequencer is in the committee or not. We always
209
243
  * have the proposer try to invalidate, but if they fail, the sequencers in the committee are expected to try,
210
244
  * and if they fail, any sequencer will try as well.
245
+ * @param pendingChainValidationStatus - The archiver's pending-chain validation status, authoritative on its own.
246
+ * @param currentSlot - The wall-clock slot, used for committee lookup, the per-(checkpoint, slot) dedup guard, and logging.
247
+ */
248
+ protected considerInvalidatingCheckpoint(pendingChainValidationStatus: ValidateCheckpointResult, currentSlot: SlotNumber): Promise<void>;
249
+ private logStrategyComparison;
250
+ /**
251
+ * Wall-clock seconds elapsed since the build-frame start of the given target slot
252
+ * (`now − getBuildFrameStart(targetSlot)`). May be negative if called before the build frame opens.
211
253
  */
212
- protected considerInvalidatingBlock(syncedTo: NonNullable<Awaited<ReturnType<Sequencer['checkSync']>>>, currentSlot: bigint): Promise<void>;
213
- private getSlotStartBuildTimestamp;
214
- private getSecondsIntoSlot;
254
+ private getSecondsIntoBuildFrame;
215
255
  get aztecSlotDuration(): number;
216
256
  get maxL2BlockGas(): number | undefined;
217
257
  getSlasherClient(): SlasherClientInterface | undefined;
258
+ get tracer(): Tracer;
259
+ getValidatorAddresses(): EthAddress[];
260
+ /** Updates the publisher factory's node keystore adapter after a keystore reload. */
261
+ updatePublisherNodeKeyStore(adapter: NodeKeystoreAdapter): void;
262
+ getConfig(): {
263
+ sequencerPollingIntervalMS: number;
264
+ maxTxsPerBlock?: number | undefined;
265
+ maxTxsPerCheckpoint?: number | undefined;
266
+ maxBlocksPerCheckpoint: number;
267
+ minTxsPerBlock: number;
268
+ minValidTxsPerBlock?: number | undefined;
269
+ publishTxsWithProposals: boolean;
270
+ maxL2BlockGas?: number | undefined;
271
+ maxDABlockGas?: number | undefined;
272
+ perBlockAllocationMultiplier: number;
273
+ perBlockDAAllocationMultiplier: number;
274
+ redistributeCheckpointBudget?: boolean | undefined;
275
+ coinbase?: EthAddress | undefined;
276
+ feeRecipient?: import("@aztec/stdlib/aztec-address").AztecAddress | undefined;
277
+ acvmWorkingDirectory?: string | undefined;
278
+ acvmBinaryPath?: string | undefined;
279
+ txPublicSetupAllowListExtend?: import("@aztec/stdlib/config").AllowedElement[] | undefined;
280
+ governanceProposerPayload?: EthAddress | undefined;
281
+ minBlockDuration?: number | undefined;
282
+ checkpointProposalPrepareTime?: number | undefined;
283
+ l1PublishingTime: number;
284
+ fakeProcessingDelayPerTxMs?: number | undefined;
285
+ fakeThrowAfterProcessingTxCount?: number | undefined;
286
+ attestationPropagationTime: number;
287
+ secondsBeforeInvalidatingBlockAsCommitteeMember: number;
288
+ secondsBeforeInvalidatingBlockAsNonCommitteeMember: number;
289
+ skipCollectingAttestations: boolean;
290
+ skipInvalidateBlockAsProposer: boolean;
291
+ skipWaitForValidParentCheckpointOnL1: boolean;
292
+ broadcastInvalidBlockProposal: boolean;
293
+ invalidBlockProposalIndexWithinCheckpoint?: number | undefined;
294
+ broadcastInvalidCheckpointProposalOnly: boolean;
295
+ injectFakeAttestation: boolean;
296
+ injectHighSValueAttestation: boolean;
297
+ injectUnrecoverableSignatureAttestation: boolean;
298
+ injectYParityAttestation: boolean;
299
+ fishermanMode: boolean;
300
+ shuffleAttestationOrdering: boolean;
301
+ blockDurationMs: number;
302
+ checkpointProposalSyncGraceSeconds: number;
303
+ expectedBlockProposalsPerSlot?: number | undefined;
304
+ buildCheckpointIfEmpty: boolean;
305
+ skipPushProposedBlocksToArchiver: boolean;
306
+ minBlocksForCheckpoint?: number | undefined;
307
+ skipPublishingCheckpointsPercent: number;
308
+ skipBroadcastProposals?: boolean | undefined;
309
+ skipBroadcastCheckpointProposal?: boolean | undefined;
310
+ pauseProposingForSlots?: SlotNumber[] | undefined;
311
+ };
218
312
  }
219
- //# sourceMappingURL=sequencer.d.ts.map
313
+ type SequencerSyncCheckResult = {
314
+ blockData?: BlockData;
315
+ checkpointNumber: CheckpointNumber;
316
+ checkpointedCheckpointNumber: CheckpointNumber;
317
+ blockNumber: BlockNumber;
318
+ archive: Fr;
319
+ hasProposedCheckpoint: boolean;
320
+ proposedCheckpointData?: ProposedCheckpointData;
321
+ syncedL2Slot: SlotNumber;
322
+ pendingChainValidationStatus: ValidateCheckpointResult;
323
+ };
324
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VxdWVuY2VyLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VxdWVuY2VyL3NlcXVlbmNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsS0FBSyxVQUFVLEVBQW1DLE1BQU0sb0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