Remove API Middleware (#13243)

* remove api/gateway/apimiddleware

* fix errors in api/gateway

* remove beacon-chain/rpc/apimiddleware

* fix errors in api/client/beacon

* fix errors in validator/client/beacon-api

* fix errors in beacon-chain/node

* fix errors in validator/node

* fix errors in cmd/prysmctl/validator

* fix errors in testing/endtoend

* fix all other code

* remove comment

* fix tests

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Radosław Kapka
2023-12-04 12:55:21 +01:00
committed by GitHub
parent b68a4e12aa
commit a0ca4a67b0
78 changed files with 901 additions and 3956 deletions

View File

@@ -1549,9 +1549,7 @@ func (s *Server) GetBlockRoot(w http.ResponseWriter, r *http.Request) {
return
}
response := &BlockRootResponse{
Data: &struct {
Root string `json:"root"`
}{
Data: &BlockRoot{
Root: hexutil.Encode(root),
},
ExecutionOptimistic: isOptimistic,