mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 06:18:31 +00:00
chore(validator_client): Read genesis time and genesis validators root from eth2_network_config (#8638)
#5019 If there is a known eth2_network_config, we read the genesis time and validators root from the config. Co-Authored-By: Jimmy Chu <898091+jimmychu0807@users.noreply.github.com>
This commit is contained in:
@@ -33,6 +33,8 @@ const HOLESKY_GENESIS_STATE_SOURCE: GenesisStateSource = GenesisStateSource::Url
|
||||
checksum: "0xd750639607c337bbb192b15c27f447732267bf72d1650180a0e44c2d93a80741",
|
||||
genesis_validators_root: "0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1",
|
||||
genesis_state_root: "0x0ea3f6f9515823b59c863454675fefcd1d8b4f2dbe454db166206a41fda060a0",
|
||||
// ref: https://github.com/eth-clients/holesky/blob/main/README.md - Launch Epoch time
|
||||
genesis_time: 1695902400,
|
||||
};
|
||||
|
||||
const HOODI_GENESIS_STATE_SOURCE: GenesisStateSource = GenesisStateSource::Url {
|
||||
@@ -44,6 +46,8 @@ const HOODI_GENESIS_STATE_SOURCE: GenesisStateSource = GenesisStateSource::Url {
|
||||
checksum: "0x7f42257ef69e055496c964a753bb07e54001ccd57ab467ef72d67af086bcfce7",
|
||||
genesis_validators_root: "0x212f13fc4df078b6cb7db228f1c8307566dcecf900867401a92023d7ba99cb5f",
|
||||
genesis_state_root: "0x2683ebc120f91f740c7bed4c866672d01e1ba51b4cc360297138465ee5df40f0",
|
||||
// ref: https://github.com/eth-clients/hoodi/blob/main/README.md - Launch Epoch time
|
||||
genesis_time: 1742213400,
|
||||
};
|
||||
|
||||
const CHIADO_GENESIS_STATE_SOURCE: GenesisStateSource = GenesisStateSource::Url {
|
||||
@@ -52,6 +56,8 @@ const CHIADO_GENESIS_STATE_SOURCE: GenesisStateSource = GenesisStateSource::Url
|
||||
checksum: "0xd4a039454c7429f1dfaa7e11e397ef3d0f50d2d5e4c0e4dc04919d153aa13af1",
|
||||
genesis_validators_root: "0x9d642dac73058fbf39c0ae41ab1e34e4d889043cb199851ded7095bc99eb4c1e",
|
||||
genesis_state_root: "0xa48419160f8f146ecaa53d12a5d6e1e6af414a328afdc56b60d5002bb472a077",
|
||||
// ref: https://github.com/gnosischain/configs/blob/main/chiado/genesis.ssz
|
||||
genesis_time: 1665396300,
|
||||
};
|
||||
|
||||
/// The core configuration of a Lighthouse beacon node.
|
||||
@@ -117,6 +123,10 @@ pub enum GenesisStateSource {
|
||||
///
|
||||
/// The format should be 0x-prefixed ASCII bytes.
|
||||
genesis_state_root: &'static str,
|
||||
/// The genesis time.
|
||||
///
|
||||
/// The format should be u64.
|
||||
genesis_time: u64,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user