@aztec/sequencer-client 4.0.4-rc.7 → 4.0.4-rc.8
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.
|
@@ -164,7 +164,7 @@ import { SequencerTimetable } from '../sequencer/timetable.js';
|
|
|
164
164
|
blockDurationMs: config.blockDurationMs,
|
|
165
165
|
enforce: config.enforceTimeTable ?? DefaultSequencerConfig.enforceTimeTable
|
|
166
166
|
}).maxNumberOfBlocks;
|
|
167
|
-
const multiplier = config.
|
|
167
|
+
const multiplier = config.perBlockAllocationMultiplier ?? DefaultSequencerConfig.perBlockAllocationMultiplier;
|
|
168
168
|
// Compute maxL2BlockGas
|
|
169
169
|
let maxL2BlockGas;
|
|
170
170
|
if (config.maxL2BlockGas !== undefined) {
|
package/dest/config.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const DefaultSequencerConfig: {
|
|
|
17
17
|
minTxsPerBlock: number;
|
|
18
18
|
buildCheckpointIfEmpty: false;
|
|
19
19
|
publishTxsWithProposals: false;
|
|
20
|
-
|
|
20
|
+
perBlockAllocationMultiplier: number;
|
|
21
21
|
enforceTimeTable: true;
|
|
22
22
|
attestationPropagationTime: number;
|
|
23
23
|
secondsBeforeInvalidatingBlockAsCommitteeMember: number;
|
package/dest/config.js
CHANGED
|
@@ -18,7 +18,7 @@ export * from './publisher/config.js';
|
|
|
18
18
|
minTxsPerBlock: 1,
|
|
19
19
|
buildCheckpointIfEmpty: false,
|
|
20
20
|
publishTxsWithProposals: false,
|
|
21
|
-
|
|
21
|
+
perBlockAllocationMultiplier: 2,
|
|
22
22
|
enforceTimeTable: true,
|
|
23
23
|
attestationPropagationTime: DEFAULT_P2P_PROPAGATION_TIME,
|
|
24
24
|
secondsBeforeInvalidatingBlockAsCommitteeMember: 144,
|
|
@@ -68,10 +68,10 @@ export const sequencerConfigMappings = {
|
|
|
68
68
|
description: 'The maximum DA block gas.',
|
|
69
69
|
parseEnv: (val)=>val ? parseInt(val, 10) : undefined
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
env: '
|
|
71
|
+
perBlockAllocationMultiplier: {
|
|
72
|
+
env: 'SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER',
|
|
73
73
|
description: 'Per-block gas budget multiplier for both L2 and DA gas. Budget per block is (checkpointLimit / maxBlocks) * multiplier.' + ' Values greater than one allow early blocks to use more than their even share, relying on checkpoint-level capping for later blocks.',
|
|
74
|
-
...numberConfigHelper(DefaultSequencerConfig.
|
|
74
|
+
...numberConfigHelper(DefaultSequencerConfig.perBlockAllocationMultiplier)
|
|
75
75
|
},
|
|
76
76
|
coinbase: {
|
|
77
77
|
env: 'COINBASE',
|
|
@@ -158,7 +158,7 @@ export declare class Sequencer extends Sequencer_base {
|
|
|
158
158
|
publishTxsWithProposals: boolean;
|
|
159
159
|
maxL2BlockGas?: number | undefined;
|
|
160
160
|
maxDABlockGas?: number | undefined;
|
|
161
|
-
|
|
161
|
+
perBlockAllocationMultiplier?: number | undefined;
|
|
162
162
|
coinbase?: EthAddress | undefined;
|
|
163
163
|
feeRecipient?: import("@aztec/stdlib/aztec-address").AztecAddress | undefined;
|
|
164
164
|
acvmWorkingDirectory?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/sequencer-client",
|
|
3
|
-
"version": "4.0.4-rc.
|
|
3
|
+
"version": "4.0.4-rc.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -26,38 +26,38 @@
|
|
|
26
26
|
"test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --config jest.integration.config.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aztec/aztec.js": "4.0.4-rc.
|
|
30
|
-
"@aztec/bb-prover": "4.0.4-rc.
|
|
31
|
-
"@aztec/blob-client": "4.0.4-rc.
|
|
32
|
-
"@aztec/blob-lib": "4.0.4-rc.
|
|
33
|
-
"@aztec/constants": "4.0.4-rc.
|
|
34
|
-
"@aztec/epoch-cache": "4.0.4-rc.
|
|
35
|
-
"@aztec/ethereum": "4.0.4-rc.
|
|
36
|
-
"@aztec/foundation": "4.0.4-rc.
|
|
37
|
-
"@aztec/l1-artifacts": "4.0.4-rc.
|
|
38
|
-
"@aztec/merkle-tree": "4.0.4-rc.
|
|
39
|
-
"@aztec/node-keystore": "4.0.4-rc.
|
|
40
|
-
"@aztec/noir-acvm_js": "4.0.4-rc.
|
|
41
|
-
"@aztec/noir-contracts.js": "4.0.4-rc.
|
|
42
|
-
"@aztec/noir-protocol-circuits-types": "4.0.4-rc.
|
|
43
|
-
"@aztec/noir-types": "4.0.4-rc.
|
|
44
|
-
"@aztec/p2p": "4.0.4-rc.
|
|
45
|
-
"@aztec/protocol-contracts": "4.0.4-rc.
|
|
46
|
-
"@aztec/prover-client": "4.0.4-rc.
|
|
47
|
-
"@aztec/simulator": "4.0.4-rc.
|
|
48
|
-
"@aztec/slasher": "4.0.4-rc.
|
|
49
|
-
"@aztec/stdlib": "4.0.4-rc.
|
|
50
|
-
"@aztec/telemetry-client": "4.0.4-rc.
|
|
51
|
-
"@aztec/validator-client": "4.0.4-rc.
|
|
52
|
-
"@aztec/validator-ha-signer": "4.0.4-rc.
|
|
53
|
-
"@aztec/world-state": "4.0.4-rc.
|
|
29
|
+
"@aztec/aztec.js": "4.0.4-rc.8",
|
|
30
|
+
"@aztec/bb-prover": "4.0.4-rc.8",
|
|
31
|
+
"@aztec/blob-client": "4.0.4-rc.8",
|
|
32
|
+
"@aztec/blob-lib": "4.0.4-rc.8",
|
|
33
|
+
"@aztec/constants": "4.0.4-rc.8",
|
|
34
|
+
"@aztec/epoch-cache": "4.0.4-rc.8",
|
|
35
|
+
"@aztec/ethereum": "4.0.4-rc.8",
|
|
36
|
+
"@aztec/foundation": "4.0.4-rc.8",
|
|
37
|
+
"@aztec/l1-artifacts": "4.0.4-rc.8",
|
|
38
|
+
"@aztec/merkle-tree": "4.0.4-rc.8",
|
|
39
|
+
"@aztec/node-keystore": "4.0.4-rc.8",
|
|
40
|
+
"@aztec/noir-acvm_js": "4.0.4-rc.8",
|
|
41
|
+
"@aztec/noir-contracts.js": "4.0.4-rc.8",
|
|
42
|
+
"@aztec/noir-protocol-circuits-types": "4.0.4-rc.8",
|
|
43
|
+
"@aztec/noir-types": "4.0.4-rc.8",
|
|
44
|
+
"@aztec/p2p": "4.0.4-rc.8",
|
|
45
|
+
"@aztec/protocol-contracts": "4.0.4-rc.8",
|
|
46
|
+
"@aztec/prover-client": "4.0.4-rc.8",
|
|
47
|
+
"@aztec/simulator": "4.0.4-rc.8",
|
|
48
|
+
"@aztec/slasher": "4.0.4-rc.8",
|
|
49
|
+
"@aztec/stdlib": "4.0.4-rc.8",
|
|
50
|
+
"@aztec/telemetry-client": "4.0.4-rc.8",
|
|
51
|
+
"@aztec/validator-client": "4.0.4-rc.8",
|
|
52
|
+
"@aztec/validator-ha-signer": "4.0.4-rc.8",
|
|
53
|
+
"@aztec/world-state": "4.0.4-rc.8",
|
|
54
54
|
"lodash.chunk": "^4.2.0",
|
|
55
55
|
"tslib": "^2.4.0",
|
|
56
56
|
"viem": "npm:@aztec/viem@2.38.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aztec/archiver": "4.0.4-rc.
|
|
60
|
-
"@aztec/kv-store": "4.0.4-rc.
|
|
59
|
+
"@aztec/archiver": "4.0.4-rc.8",
|
|
60
|
+
"@aztec/kv-store": "4.0.4-rc.8",
|
|
61
61
|
"@electric-sql/pglite": "^0.3.14",
|
|
62
62
|
"@jest/globals": "^30.0.0",
|
|
63
63
|
"@types/jest": "^30.0.0",
|
|
@@ -267,7 +267,7 @@ export function computeBlockLimits(
|
|
|
267
267
|
enforce: config.enforceTimeTable ?? DefaultSequencerConfig.enforceTimeTable,
|
|
268
268
|
}).maxNumberOfBlocks;
|
|
269
269
|
|
|
270
|
-
const multiplier = config.
|
|
270
|
+
const multiplier = config.perBlockAllocationMultiplier ?? DefaultSequencerConfig.perBlockAllocationMultiplier;
|
|
271
271
|
|
|
272
272
|
// Compute maxL2BlockGas
|
|
273
273
|
let maxL2BlockGas: number;
|
package/src/config.ts
CHANGED
|
@@ -40,7 +40,7 @@ export const DefaultSequencerConfig = {
|
|
|
40
40
|
minTxsPerBlock: 1,
|
|
41
41
|
buildCheckpointIfEmpty: false,
|
|
42
42
|
publishTxsWithProposals: false,
|
|
43
|
-
|
|
43
|
+
perBlockAllocationMultiplier: 2,
|
|
44
44
|
enforceTimeTable: true,
|
|
45
45
|
attestationPropagationTime: DEFAULT_P2P_PROPAGATION_TIME,
|
|
46
46
|
secondsBeforeInvalidatingBlockAsCommitteeMember: 144, // 12 L1 blocks
|
|
@@ -105,12 +105,12 @@ export const sequencerConfigMappings: ConfigMappingsType<SequencerConfig> = {
|
|
|
105
105
|
description: 'The maximum DA block gas.',
|
|
106
106
|
parseEnv: (val: string) => (val ? parseInt(val, 10) : undefined),
|
|
107
107
|
},
|
|
108
|
-
|
|
109
|
-
env: '
|
|
108
|
+
perBlockAllocationMultiplier: {
|
|
109
|
+
env: 'SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER',
|
|
110
110
|
description:
|
|
111
111
|
'Per-block gas budget multiplier for both L2 and DA gas. Budget per block is (checkpointLimit / maxBlocks) * multiplier.' +
|
|
112
112
|
' Values greater than one allow early blocks to use more than their even share, relying on checkpoint-level capping for later blocks.',
|
|
113
|
-
...numberConfigHelper(DefaultSequencerConfig.
|
|
113
|
+
...numberConfigHelper(DefaultSequencerConfig.perBlockAllocationMultiplier),
|
|
114
114
|
},
|
|
115
115
|
coinbase: {
|
|
116
116
|
env: 'COINBASE',
|