Skip to content

Commit

Permalink
feat(blobs): add consensus client url to config (#10059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 authored Dec 16, 2024
1 parent bbbf38b commit 1e15bf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions yarn-project/archiver/src/archiver/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export type ArchiverConfig = {
/** URL for an archiver service. If set, will return an archiver client as opposed to starting a new one. */
archiverUrl?: string;

/** URL for an L1 consensus client */
l1ConsensusClientUrl: string;

/** The polling interval in ms for retrieving new L2 blocks and encrypted logs. */
archiverPollingIntervalMS?: number;

Expand All @@ -44,6 +47,11 @@ export const archiverConfigMappings: ConfigMappingsType<ArchiverConfig> = {
description:
'URL for an archiver service. If set, will return an archiver client as opposed to starting a new one.',
},
l1ConsensusClientUrl: {
env: 'L1_CONSENSUS_CLIENT_URL',
description: 'URL for an L1 consensus client.',
parseEnv: (val: string) => (val ? val : 'http://localhost:5052'),
},
archiverPollingIntervalMS: {
env: 'ARCHIVER_POLLING_INTERVAL_MS',
description: 'The polling interval in ms for retrieving new L2 blocks and encrypted logs.',
Expand Down
1 change: 1 addition & 0 deletions yarn-project/foundation/src/config/env_var.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type EnvVar =
| 'GOVERNANCE_PROPOSER_PAYLOAD_ADDRESS'
| 'INBOX_CONTRACT_ADDRESS'
| 'L1_CHAIN_ID'
| 'L1_CONSENSUS_CLIENT_URL'
| 'L1_PRIVATE_KEY'
| 'L2_QUEUE_SIZE'
| 'LOG_ELAPSED_TIME'
Expand Down

0 comments on commit 1e15bf5

Please sign in to comment.