Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use legacy beacon-validator for nimbus gnosis #402

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion packages/brain/src/modules/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,23 @@ export const brainConfig = (): BrainConfig => {
// 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;
let beaconchainUrl;

// Setting URL for Teku consensus client
if (consensusClient === "teku") {
validatorUrl =
network === Network.Mainnet
? `https://validator.teku.dappnode:3500`
: `https://validator.teku-${network}.dappnode:3500`;
beaconchainUrl = `http://beacon-chain.${network}.dncore.dappnode:3500`;
} else if (consensusClient === "nimbus" && network === Network.Gnosis) {
// Setting URLs specifically for Nimbus client on the Gnosis network
validatorUrl = `http://beacon-validator.nimbus-gnosis.dappnode:3500`;
beaconchainUrl = `http://beacon-validator.nimbus-gnosis.dappnode:4500`;
} else {
// Default setting for other consensus clients and networks
validatorUrl = `http://validator.${network}.dncore.dappnode:3500`;
beaconchainUrl = `http://beacon-chain.${network}.dncore.dappnode:3500`;
}

const { blockExplorerUrl, minGenesisTime, secondsPerSlot, slotsPerEpoch } = networkConfig(network);
Expand All @@ -39,7 +49,7 @@ export const brainConfig = (): BrainConfig => {
blockExplorerUrl,
executionClientUrl: `http://execution.${network}.dncore.dappnode:8545`,
validatorUrl,
beaconchainUrl: `http:/beacon-chain.${network}.dncore.dappnode:3500`,
beaconchainUrl,
signerUrl: `http://signer.${network}.dncore.dappnode:9000`,
postgresUrl: getPostgresUrl(network),
token: getValidatorToken(consensusClient),
Expand Down