From 3670163cb0bff9bba62d99cf42d0e4c1155be97d Mon Sep 17 00:00:00 2001 From: Ryan Schneider Date: Wed, 4 Dec 2024 12:58:43 -0800 Subject: [PATCH] fix(pectra): Support ELECTRA_FORK_VERSION in mev-boost-relay --- mev-boost-relay/mev-boost-relay.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mev-boost-relay/mev-boost-relay.go b/mev-boost-relay/mev-boost-relay.go index 0975800..462d157 100644 --- a/mev-boost-relay/mev-boost-relay.go +++ b/mev-boost-relay/mev-boost-relay.go @@ -212,6 +212,7 @@ func generateEthNetworkDetails(spec *Spec, info *beaconclient.GetGenesisResponse "BELLATRIX_FORK_VERSION": spec.BellatrixForkVersion, "CAPELLA_FORK_VERSION": spec.CapellaForkVersion, "DENEB_FORK_VERSION": spec.DenebForkVersion, + "ELECTRA_FORK_VERSION": spec.ElectraForkVersion, } for k, v := range envs { if err := os.Setenv(k, v); err != nil { @@ -430,6 +431,7 @@ type Spec struct { BellatrixForkVersion string `json:"BELLATRIX_FORK_VERSION"` //nolint:tagliatelle CapellaForkVersion string `json:"CAPELLA_FORK_VERSION"` //nolint:tagliatelle DenebForkVersion string `json:"DENEB_FORK_VERSION"` //nolint:tagliatelle + ElectraForkVersion string `json:"ELECTRA_FORK_VERSION"` //nolint:tagliatelle } func getSpec(beaconURL string) (*Spec, error) {