Skip to content

Commit 9857611

Browse files
authored
Add holesky support in relay (#554)
1 parent bce5669 commit 9857611

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MEV-Boost Relay for Ethereum proposer/builder separation (PBS).
88

99
Currently live at:
1010

11-
* [boost-relay.flashbots.net](https://boost-relay.flashbots.net) (also on [Goerli](https://boost-relay-goerli.flashbots.net) and [Sepolia](https://boost-relay-sepolia.flashbots.net))
11+
* [boost-relay.flashbots.net](https://boost-relay.flashbots.net) (also on [Goerli](https://boost-relay-goerli.flashbots.net), [Sepolia](https://boost-relay-sepolia.flashbots.net) and [Holesky](https://boost-relay-holesky.flashbots.net))
1212
* [relay.ultrasound.money](https://relay.ultrasound.money), [agnostic-relay.net](https://agnostic-relay.net), bloXroute relays ([light fork](https://github.com/bloXroute-Labs/mev-relay))
1313
* [mainnet.aestus.live](https://mainnet.aestus.live), [relay.edennetwork.io/info](https://relay.edennetwork.io/info), [mainnet-relay.securerpc.com](https://mainnet-relay.securerpc.com)
1414

common/types.go

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,34 @@ var (
2424
ErrUnknownNetwork = errors.New("unknown network")
2525
ErrEmptyPayload = errors.New("empty payload")
2626

27+
EthNetworkHolesky = "holesky"
2728
EthNetworkSepolia = "sepolia"
2829
EthNetworkGoerli = "goerli"
2930
EthNetworkMainnet = "mainnet"
3031
EthNetworkCustom = "custom"
3132

33+
GenesisForkVersionHolesky = "0x01017000"
34+
GenesisForkVersionSepolia = "0x90000069"
35+
GenesisForkVersionGoerli = "0x00001020"
36+
GenesisForkVersionMainnet = "0x00000000"
37+
38+
GenesisValidatorsRootHolesky = "0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"
39+
GenesisValidatorsRootSepolia = "0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"
40+
GenesisValidatorsRootGoerli = "0x043db0d9a83813551ee2f33450d23797757d430911a9320530ad8a0eabc43efb"
41+
GenesisValidatorsRootMainnet = "0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"
42+
43+
BellatrixForkVersionHolesky = "0x03017000"
44+
BellatrixForkVersionSepolia = "0x90000071"
45+
BellatrixForkVersionGoerli = "0x02001020"
46+
BellatrixForkVersionMainnet = "0x02000000"
47+
48+
CapellaForkVersionHolesky = "0x04017000"
3249
CapellaForkVersionSepolia = "0x90000072"
3350
CapellaForkVersionGoerli = "0x03001020"
3451
CapellaForkVersionMainnet = "0x03000000"
3552

53+
// TODO: check deneb fork version for holesky when it is out
54+
DenebForkVersionHolesky = "0x05017000"
3655
DenebForkVersionSepolia = "0x90000073"
3756
DenebForkVersionGoerli = "0x04001020"
3857
DenebForkVersionMainnet = "0x04000000"
@@ -68,22 +87,28 @@ func NewEthNetworkDetails(networkName string) (ret *EthNetworkDetails, err error
6887
var domainBeaconProposerDeneb boostTypes.Domain
6988

7089
switch networkName {
90+
case EthNetworkHolesky:
91+
genesisForkVersion = GenesisForkVersionHolesky
92+
genesisValidatorsRoot = GenesisValidatorsRootHolesky
93+
bellatrixForkVersion = BellatrixForkVersionHolesky
94+
capellaForkVersion = CapellaForkVersionHolesky
95+
denebForkVersion = DenebForkVersionHolesky
7196
case EthNetworkSepolia:
72-
genesisForkVersion = boostTypes.GenesisForkVersionSepolia
73-
genesisValidatorsRoot = boostTypes.GenesisValidatorsRootSepolia
74-
bellatrixForkVersion = boostTypes.BellatrixForkVersionSepolia
97+
genesisForkVersion = GenesisForkVersionSepolia
98+
genesisValidatorsRoot = GenesisValidatorsRootSepolia
99+
bellatrixForkVersion = BellatrixForkVersionSepolia
75100
capellaForkVersion = CapellaForkVersionSepolia
76101
denebForkVersion = DenebForkVersionSepolia
77102
case EthNetworkGoerli:
78-
genesisForkVersion = boostTypes.GenesisForkVersionGoerli
79-
genesisValidatorsRoot = boostTypes.GenesisValidatorsRootGoerli
80-
bellatrixForkVersion = boostTypes.BellatrixForkVersionGoerli
103+
genesisForkVersion = GenesisForkVersionGoerli
104+
genesisValidatorsRoot = GenesisValidatorsRootGoerli
105+
bellatrixForkVersion = BellatrixForkVersionGoerli
81106
capellaForkVersion = CapellaForkVersionGoerli
82107
denebForkVersion = DenebForkVersionGoerli
83108
case EthNetworkMainnet:
84-
genesisForkVersion = boostTypes.GenesisForkVersionMainnet
85-
genesisValidatorsRoot = boostTypes.GenesisValidatorsRootMainnet
86-
bellatrixForkVersion = boostTypes.BellatrixForkVersionMainnet
109+
genesisForkVersion = GenesisForkVersionMainnet
110+
genesisValidatorsRoot = GenesisValidatorsRootMainnet
111+
bellatrixForkVersion = BellatrixForkVersionMainnet
87112
capellaForkVersion = CapellaForkVersionMainnet
88113
denebForkVersion = DenebForkVersionMainnet
89114
case EthNetworkCustom:

0 commit comments

Comments
 (0)