undavertise amsterdam

This commit is contained in:
MariusVanDerWijden 2026-06-16 10:50:52 +02:00
parent afa27a4f59
commit 00a4a9e72c
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -40,7 +40,7 @@ func (rt *Router) handleCapabilities(w http.ResponseWriter, r *http.Request) {
return return
} }
resp := capabilitiesResponse{ resp := capabilitiesResponse{
SupportedForks: []string{"paris", "shanghai", "cancun", "prague", "osaka", "amsterdam"}, SupportedForks: []string{"paris", "shanghai", "cancun", "prague", "osaka"},
ForkScopedEndpoints: []string{"payloads", "forkchoice", "bodies"}, ForkScopedEndpoints: []string{"payloads", "forkchoice", "bodies"},
IndependentlyVersioned: map[string][]string{ IndependentlyVersioned: map[string][]string{
"blobs": {"v1", "v2", "v3", "v4"}, "blobs": {"v1", "v2", "v3", "v4"},

View file

@ -247,7 +247,9 @@ func TestRouterCapabilities(t *testing.T) {
} }
// Capabilities must advertise every fork the router routes, so a consensus // Capabilities must advertise every fork the router routes, so a consensus
// client negotiates SSZ for all of them rather than falling back to JSON-RPC. // client negotiates SSZ for all of them rather than falling back to JSON-RPC.
want := map[string]bool{"paris": true, "shanghai": true, "cancun": true, "prague": true, "osaka": true, "amsterdam": true} // amsterdam is routed but not yet fully implemented, so it is intentionally
// not advertised for now.
want := map[string]bool{"paris": true, "shanghai": true, "cancun": true, "prague": true, "osaka": true}
if len(c.SupportedForks) != len(want) { if len(c.SupportedForks) != len(want) {
t.Errorf("supported forks: got %v, want all of %v", c.SupportedForks, want) t.Errorf("supported forks: got %v, want all of %v", c.SupportedForks, want)
} }