Skip to content

Commit 698a112

Browse files
authored
fix(backport-to-v2): datastore map size kb (#17985)
Manual backport of #17936
1 parent 4791c59 commit 698a112

File tree

39 files changed

+83
-83
lines changed

39 files changed

+83
-83
lines changed

boxes/boxes/vanilla/scripts/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function setupPXE() {
3333

3434
const store = await createStore('pxe', {
3535
dataDirectory: PXE_STORE_DIR,
36-
dataStoreMapSizeKB: 1e6,
36+
dataStoreMapSizeKb: 1e6,
3737
});
3838

3939
const config = getPXEServiceConfig();

docs/docs/developers/guides/getting_started_on_testnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const fullConfig = { ...config, l1Contracts };
179179

180180
const store = await createStore("pxe1", {
181181
dataDirectory: "store",
182-
dataStoreMapSizeKB: 1e6,
182+
dataStoreMapSizeKb: 1e6,
183183
});
184184

185185
const pxe = await createPXEService(node, fullConfig, { store });

docs/docs/developers/reference/environment_reference/cli_reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ aztec start --node --network testnet
176176
- `--p2p.block-request-batch-size <value>`: The number of blocks to fetch in a single batch (default: 20).
177177
- `--p2p.archived-tx-limit <value>`: The number of transactions that will be archived. If the limit is set to 0 then archiving will be disabled.
178178
- `--p2p.trusted-peers <value>`: A list of trusted peers ENRs. Separated by commas.
179-
- `--p2p.p2p-store-map-size-kb <value>`: The maximum possible size of the P2P DB in KB. Overwrites the general dataStoreMapSizeKB.
179+
- `--p2p.p2p-store-map-size-kb <value>`: The maximum possible size of the P2P DB in KB. Overwrites the general dataStoreMapSizeKb.
180180
- `--p2p.tx-public-setup-allow-list <value>`: The list of functions calls allowed to run in setup.
181181
- `--p2p.max-tx-pool-size <value>`: The maximum cumulative tx size of pending txs (in bytes) before evicting lower priority txs (default: 100000000).
182182
- `--p2p.overall-request-timeout-ms <value>`: The overall timeout for a request response operation (default: 4000).
@@ -220,7 +220,7 @@ aztec start --port 8081 --pxe --pxe.nodeUrl=$BOOTNODE --pxe.proverEnabled true -
220220
- `--archiver.archiver-polling-interval-ms <value>`: The polling interval in ms for retrieving new L2 blocks and encrypted logs (default: 500).
221221
- `--archiver.archiver-batch-size <value>`: The number of L2 blocks the archiver will attempt to download at a time (default: 100).
222222
- `--archiver.max-logs <value>`: The max number of logs that can be obtained in 1 "getPublicLogs" call (default: 1000).
223-
- `--archiver.archiver-store-map-size-kb <value>`: The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKB.
223+
- `--archiver.archiver-store-map-size-kb <value>`: The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKb.
224224
- `--archiver.rollup-version <value>`: The version of the rollup.
225225
- `--archiver.viem-polling-interval-ms <value>`: The polling interval viem uses in ms (default: 1000).
226226
- `--archiver.ethereum-slot-duration <value>`: How many seconds an L1 slot lasts (default: 12).
@@ -329,7 +329,7 @@ aztec start --network testnet --l1-rpc-urls https://example.com --l1-consensus-h
329329
- `--prover-node.world-state-block-check-interval-ms <value>`: The frequency in which to check (default: 100).
330330
- `--prover-node.world-state-proven-blocks-only <value>`: Whether to follow only the proven chain.
331331
- `--prover-node.world-state-block-request-batch-size <value>`: Size of the batch for each get-blocks request from the synchronizer to the archiver.
332-
- `--prover-node.world-state-db-map-size-kb <value>`: The maximum possible size of the world state DB in KB. Overwrites the general dataStoreMapSizeKB.
332+
- `--prover-node.world-state-db-map-size-kb <value>`: The maximum possible size of the world state DB in KB. Overwrites the general dataStoreMapSizeKb.
333333
- `--prover-node.world-state-data-directory <value>`: Optional directory for the world state database.
334334
- `--prover-node.world-state-block-history <value>`: The number of historic blocks to maintain. Values less than 1 mean all history is maintained (default: 64).
335335
- `--prover-node.l1-publish-retry-interval-ms <value>`: The interval to wait between publish retries (default: 1000).
@@ -356,7 +356,7 @@ aztec start --network testnet --l1-rpc-urls https://example.com --l1-consensus-h
356356
- `--prover-broker.prover-broker-batch-size <value>`: The prover broker writes jobs to disk in batches (default: 100).
357357
- `--prover-broker.prover-broker-batch-interval-ms <value>`: How often to flush batches to disk (default: 50).
358358
- `--prover-broker.prover-broker-max-epochs-to-keep-results-for <value>`: The maximum number of epochs to keep results for (default: 1).
359-
- `--prover-broker.prover-broker-store-map-size-kb <value>`: The size of the prover broker's database. Will override the dataStoreMapSizeKB if set.
359+
- `--prover-broker.prover-broker-store-map-size-kb <value>`: The size of the prover broker's database. Will override the dataStoreMapSizeKb if set.
360360
- `--prover-broker.data-store-map-size-kb <value>`: DB mapping size to be applied to all key/value stores (default: 134217728).
361361
- `--prover-broker.viem-polling-interval-ms <value>`: The polling interval viem uses in ms (default: 1000).
362362
- `--prover-broker.rollup-version <value>`: The version of the rollup.

docs/docs/the_aztec_network/reference/cli_reference.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ If two subsystems can contain the same configuration option, only one needs to b
244244
A list of private peer ENRs that will always be persisted and not be used for discovery. Separated by commas.
245245
246246
--p2p.p2pStoreMapSizeKb <value> ($P2P_STORE_MAP_SIZE_KB)
247-
The maximum possible size of the P2P DB in KB. Overwrites the general dataStoreMapSizeKB.
247+
The maximum possible size of the P2P DB in KB. Overwrites the general dataStoreMapSizeKb.
248248
249249
--p2p.txPublicSetupAllowList <value> ($TX_PUBLIC_SETUP_ALLOWLIST)
250250
The list of functions calls allowed to run in setup
@@ -310,7 +310,7 @@ If two subsystems can contain the same configuration option, only one needs to b
310310
--pxe
311311
Starts Aztec PXE with options
312312
313-
--pxe.dataStoreMapSizeKB <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
313+
--pxe.dataStoreMapSizeKb <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
314314
DB mapping size to be applied to all key/value stores
315315
316316
--pxe.rollupVersion <value> ($ROLLUP_VERSION)
@@ -343,7 +343,7 @@ If two subsystems can contain the same configuration option, only one needs to b
343343
The URL of the blob sink
344344
345345
--archiver.blobSinkMapSizeKb <value> ($BLOB_SINK_MAP_SIZE_KB)
346-
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKB.
346+
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKb.
347347
348348
--archiver.archiveApiUrl <value> ($BLOB_SINK_ARCHIVE_API_URL)
349349
The URL of the archive API
@@ -358,7 +358,7 @@ If two subsystems can contain the same configuration option, only one needs to b
358358
The max number of logs that can be obtained in 1 "getPublicLogs" call.
359359
360360
--archiver.archiverStoreMapSizeKb <value> ($ARCHIVER_STORE_MAP_SIZE_KB)
361-
The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKB.
361+
The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKb.
362362
363363
--archiver.rollupVersion <value> ($ROLLUP_VERSION)
364364
The version of the rollup.
@@ -561,7 +561,7 @@ If two subsystems can contain the same configuration option, only one needs to b
561561
The URL of the blob sink
562562
563563
--sequencer.blobSinkMapSizeKb <value> ($BLOB_SINK_MAP_SIZE_KB)
564-
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKB.
564+
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKb.
565565
566566
--sequencer.archiveApiUrl <value> ($BLOB_SINK_ARCHIVE_API_URL)
567567
The URL of the archive API
@@ -590,12 +590,12 @@ If two subsystems can contain the same configuration option, only one needs to b
590590
The URL of the blob sink
591591
592592
--blobSink.blobSinkMapSizeKb <value> ($BLOB_SINK_MAP_SIZE_KB)
593-
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKB.
593+
The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKb.
594594
595595
--blobSink.archiveApiUrl <value> ($BLOB_SINK_ARCHIVE_API_URL)
596596
The URL of the archive API
597597
598-
--blobSink.dataStoreMapSizeKB <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
598+
--blobSink.dataStoreMapSizeKb <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
599599
DB mapping size to be applied to all key/value stores
600600
601601
--blobSink.rollupVersion <value> ($ROLLUP_VERSION)
@@ -652,7 +652,7 @@ If two subsystems can contain the same configuration option, only one needs to b
652652
Size of the batch for each get-blocks request from the synchronizer to the archiver.
653653
654654
--proverNode.worldStateDbMapSizeKb <value> ($WS_DB_MAP_SIZE_KB)
655-
The maximum possible size of the world state DB in KB. Overwrites the general dataStoreMapSizeKB.
655+
The maximum possible size of the world state DB in KB. Overwrites the general dataStoreMapSizeKb.
656656
657657
--proverNode.archiveTreeMapSizeKb <value> ($ARCHIVE_TREE_MAP_SIZE_KB)
658658
The maximum possible size of the world state archive tree in KB. Overwrites the general worldStateDbMapSizeKb.
@@ -749,10 +749,10 @@ If two subsystems can contain the same configuration option, only one needs to b
749749
--proverBroker.proverBrokerMaxEpochsToKeepResultsFor <value> (default: 1) ($PROVER_BROKER_MAX_EPOCHS_TO_KEEP_RESULTS_FOR)
750750
The maximum number of epochs to keep results for
751751
752-
--proverBroker.proverBrokerStoreMapSizeKB <value> ($PROVER_BROKER_STORE_MAP_SIZE_KB)
753-
The size of the prover broker's database. Will override the dataStoreMapSizeKB if set.
752+
--proverBroker.proverBrokerStoreMapSizeKb <value> ($PROVER_BROKER_STORE_MAP_SIZE_KB)
753+
The size of the prover broker's database. Will override the dataStoreMapSizeKb if set.
754754

755-
--proverBroker.dataStoreMapSizeKB <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
755+
--proverBroker.dataStoreMapSizeKb <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
756756
DB mapping size to be applied to all key/value stores
757757

758758
--proverBroker.viemPollingIntervalMS <value> (default: 1000) ($L1_READER_VIEM_POLLING_INTERVAL_MS)
@@ -801,7 +801,7 @@ If two subsystems can contain the same configuration option, only one needs to b
801801
--p2pBootstrap.peerIdPrivateKeyPath <value> ($PEER_ID_PRIVATE_KEY_PATH)
802802
An optional path to store generated peer id private keys. If blank, will default to storing any generated keys in the root of the data directory.
803803
804-
--p2pBootstrap.dataStoreMapSizeKB <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
804+
--p2pBootstrap.dataStoreMapSizeKb <value> (default: 134217728) ($DATA_STORE_MAP_SIZE_KB)
805805
DB mapping size to be applied to all key/value stores
806806
807807
BOT

playground/src/aztecEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class AztecEnv {
170170
AztecEnv.isNetworkStoreInitialized = true;
171171
const networkStore = await createStore('network_data', {
172172
dataDirectory: 'network',
173-
dataStoreMapSizeKB: 1e6,
173+
dataStoreMapSizeKb: 1e6,
174174
});
175175
const networkDB = NetworkDB.getInstance();
176176
networkDB.init(networkStore);

playground/src/components/sidebar/components/NetworkSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function NetworkSelector() {
9999
const walletLogger = WebLogger.getInstance().createLogger('wallet:data:idb');
100100
const walletDBStore = await createStore(
101101
`wallet-${rollupAddress}`,
102-
{ dataDirectory: 'wallet', dataStoreMapSizeKB: 2e10 },
102+
{ dataDirectory: 'wallet', dataStoreMapSizeKb: 2e10 },
103103
walletLogger,
104104
);
105105
const walletDB = WalletDB.getInstance();

yarn-project/archiver/src/archiver/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const archiverConfigMappings: ConfigMappingsType<ArchiverConfig> = {
4444
archiverStoreMapSizeKb: {
4545
env: 'ARCHIVER_STORE_MAP_SIZE_KB',
4646
parseEnv: (val: string | undefined) => (val ? +val : undefined),
47-
description: 'The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKB.',
47+
description: 'The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKb.',
4848
},
4949
skipValidateBlockAttestations: {
5050
description: 'Whether to skip validating block attestations (use only for testing).',

yarn-project/archiver/src/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function createArchiverStore(
2020
) {
2121
const config = {
2222
...userConfig,
23-
dataStoreMapSizeKB: userConfig.archiverStoreMapSizeKb ?? userConfig.dataStoreMapSizeKB,
23+
dataStoreMapSizeKb: userConfig.archiverStoreMapSizeKb ?? userConfig.dataStoreMapSizeKb,
2424
};
2525
const store = await createStore(ARCHIVER_STORE_NAME, ARCHIVER_DB_VERSION, config, createLogger('archiver:lmdb'));
2626
return new KVArchiverDataStore(store, config.maxLogs);

yarn-project/aztec/src/cli/aztec_start_options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const aztecStartOptions: { [key: string]: AztecStartOption[] } = {
172172
],
173173
STORAGE: [
174174
configToFlag('--data-directory', dataConfigMappings.dataDirectory),
175-
configToFlag('--data-store-map-size-kb', dataConfigMappings.dataStoreMapSizeKB),
175+
configToFlag('--data-store-map-size-kb', dataConfigMappings.dataStoreMapSizeKb),
176176
],
177177
'WORLD STATE': [
178178
configToFlag('--world-state-data-directory', worldStateConfigMappings.worldStateDataDirectory),

yarn-project/aztec/src/cli/cmds/start_archiver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function startArchiver(
3232
);
3333

3434
let archiverConfig = { ...envConfig, ...cliOptions };
35-
archiverConfig.dataStoreMapSizeKB = archiverConfig.archiverStoreMapSizeKb ?? archiverConfig.dataStoreMapSizeKB;
35+
archiverConfig.dataStoreMapSizeKb = archiverConfig.archiverStoreMapSizeKb ?? archiverConfig.dataStoreMapSizeKb;
3636

3737
if (!archiverConfig.l1Contracts.registryAddress || archiverConfig.l1Contracts.registryAddress.isZero()) {
3838
throw new Error('L1 registry address is required to start an Archiver');

0 commit comments

Comments
 (0)