diff --git a/config/vars.go b/config/vars.go index 345c5fb1..58b697b5 100644 --- a/config/vars.go +++ b/config/vars.go @@ -7,10 +7,10 @@ import ( // Set during build const ( // Version is the version of the software, set at build time - Version = "v1.4.1-dev" + Version = "v1.5.0" // ForkVersion is the latest supported fork version at build time - ForkVersion = "bellatrix" + ForkVersion = "capella" ) // Other settings diff --git a/server/service_test.go b/server/service_test.go index 588b823a..174616fa 100644 --- a/server/service_test.go +++ b/server/service_test.go @@ -22,6 +22,7 @@ import ( "github.com/attestantio/go-eth2-client/spec/capella" "github.com/attestantio/go-eth2-client/spec/phase0" "github.com/flashbots/go-boost-utils/types" + "github.com/flashbots/mev-boost/config" "github.com/stretchr/testify/require" ) @@ -191,7 +192,7 @@ func TestStatus(t *testing.T) { require.Equal(t, http.StatusOK, rr.Code) require.True(t, len(rr.Header().Get("X-MEVBoost-Version")) > 0) - require.Equal(t, "bellatrix", rr.Header().Get("X-MEVBoost-ForkVersion")) + require.Equal(t, config.ForkVersion, rr.Header().Get("X-MEVBoost-ForkVersion")) require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) }) @@ -204,7 +205,7 @@ func TestStatus(t *testing.T) { require.Equal(t, http.StatusServiceUnavailable, rr.Code) require.True(t, len(rr.Header().Get("X-MEVBoost-Version")) > 0) - require.Equal(t, "bellatrix", rr.Header().Get("X-MEVBoost-ForkVersion")) + require.Equal(t, config.ForkVersion, rr.Header().Get("X-MEVBoost-ForkVersion")) require.Equal(t, 0, backend.relays[0].GetRequestCount(path)) }) }