Skip to content

Commit

Permalink
dont call always holesky teku
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketen committed Oct 10, 2024
1 parent cfb4936 commit b49c0fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/brain/src/modules/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ import { getTlsCert } from "./getTlsCert.js";
export const brainConfig = (): BrainConfig => {
const { network, executionClient, consensusClient, isMevBoostSet, shareDataWithDappnode } = loadEnvs();

// Determine the protocol based on the consensus client. teku uses https (tls cert)
const validatorProtocol = consensusClient === "teku" ? "https" : "http";

return {
network,
executionClient,
consensusClient,
isMevBoostSet,
executionClientUrl: `http://execution.${network}.dncore.dappnode:8545`,
validatorUrl: `http://validator.${network}.dncore.dappnode:3500}`,
validatorUrl: `${validatorProtocol}://validator.${network}.dncore.dappnode:3500}`,
beaconchainUrl: `http:/beacon-chain.${network}.dncore.dappnode:3500`,
signerUrl: `http://signer.${network}.dncore.dappnode:9000`,
token: getValidatorToken(consensusClient),
Expand Down

0 comments on commit b49c0fc

Please sign in to comment.