Skip to content

Commit

Permalink
feat(blobs): add consensus client url to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Nov 25, 2024
1 parent f76eaf6 commit 272d5bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions yarn-project/archiver/src/archiver/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export type ArchiverConfig = {
*/
archiverUrl?: string;

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

/**
* The polling interval in ms for retrieving new L2 blocks and encrypted logs.
*/
Expand All @@ -49,6 +54,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 @@ -51,6 +51,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 272d5bf

Please sign in to comment.