Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketen committed Oct 10, 2024
1 parent bbc55a6 commit 1e2dbf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/brain/src/modules/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ export const brainConfig = (): BrainConfig => {
const { network, executionClient, consensusClient, isMevBoostSet, shareDataWithDappnode } = loadEnvs();

// Determine the validator URL based on the consensus client and network.
// All this logic is needed because Teku has a TLS certificate that points to the old
// All this logic is needed because Teku has a TLS certificate that points to the old
// https://validator.teku-${network}.dappnode:3500 URL. TODO: update the Teku TLS certificate https://docs.teku.consensys.io/how-to/configure/tls
let validatorUrl;
if (consensusClient === "teku") {
validatorUrl = network === Network.Mainnet
? `https://validator.teku.dappnode:3500`
: `https://validator.teku-${network}.dappnode:3500`;
validatorUrl =
network === Network.Mainnet
? `https://validator.teku.dappnode:3500`
: `https://validator.teku-${network}.dappnode:3500`;
} else {
validatorUrl = `http://validator.${network}.dncore.dappnode:3500`;
}
Expand All @@ -40,7 +41,6 @@ export const brainConfig = (): BrainConfig => {
};
};


const getPostgresUrl = (network: Network): string => {
switch (network) {
case Network.Holesky:
Expand Down

0 comments on commit 1e2dbf4

Please sign in to comment.