Skip to content

Commit

Permalink
fix: read tel options when starting prover_node
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Aug 23, 2024
1 parent 81c86f3 commit 0f75d29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions yarn-project/aztec/src/cli/cmds/start_prover_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
createProverNodeRpcServer,
proverNodeConfigMappings,
} from '@aztec/prover-node';
import {
createAndStartTelemetryClient,
getConfigEnvVars as getTelemetryClientConfig,
} from '@aztec/telemetry-client/start';
import { createAndStartTelemetryClient, telemetryClientConfigMappings } from '@aztec/telemetry-client/start';

import { mnemonicToAccount } from 'viem/accounts';

Expand Down Expand Up @@ -70,7 +67,9 @@ export const startProverNode = async (
proverConfig.l1Contracts = await createAztecNodeClient(nodeUrl).getL1ContractAddresses();
}

const telemetry = await createAndStartTelemetryClient(getTelemetryClientConfig());
const telemetry = await createAndStartTelemetryClient(
extractRelevantOptions(options, telemetryClientConfigMappings, 'tel'),
);
const proverNode = await createProverNode(proverConfig, { telemetry });

services.push({ node: createProverNodeRpcServer(proverNode) });
Expand Down

0 comments on commit 0f75d29

Please sign in to comment.