Skip to content

Commit

Permalink
add min genesis time for each network
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Dec 13, 2024
1 parent 20bc0c3 commit 75f4b3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/config/config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ type Config struct {
// Lido specifics
LidoKeysApiUrl string
ProxyApiPort uint64

// Blockchain
MinGenesisTime uint64
}

// Helper function to parse and validate CORS from environment variable
Expand Down Expand Up @@ -160,6 +163,7 @@ func LoadNetworkConfig() (Config, error) {
CSModuleAddress: common.HexToAddress("0x4562c3e63c2e586cD1651B958C22F88135aCAd4f"),
LidoKeysApiUrl: "https://keys-api-holesky.testnet.fi",
ProxyApiPort: proxyApiPort,
MinGenesisTime: uint64(1695902100),
}
case "mainnet":
// Configure default values for the mainnet
Expand Down Expand Up @@ -196,6 +200,7 @@ func LoadNetworkConfig() (Config, error) {
CSModuleAddress: common.HexToAddress("0xdA7dE2ECdDfccC6c3AF10108Db212ACBBf9EA83F"),
LidoKeysApiUrl: "https://keys-api.lido.fi",
ProxyApiPort: proxyApiPort,
MinGenesisTime: uint64(1606824000),
}
default:
logger.Fatal("Unknown network: %s", network)
Expand Down

0 comments on commit 75f4b3d

Please sign in to comment.