Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Mar 14, 2023
1 parent 4f6b07c commit 4e43249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions server/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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))
})

Expand All @@ -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))
})
}
Expand Down

0 comments on commit 4e43249

Please sign in to comment.