fix lint: ineffassign in ssz.go, goimports in defaults.go and ssz_rest_test.go

This commit is contained in:
Giulio Rebuffo 2026-03-05 14:53:05 +00:00
parent b545134da5
commit 650273aa6c
3 changed files with 8 additions and 10 deletions

View file

@ -737,7 +737,6 @@ func EncodeExecutableDataSSZ(ep *ExecutableData, version int) []byte {
balOffset += len(withdrawalData)
}
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
pos += 4
}
// Variable part
@ -816,7 +815,6 @@ func DecodeExecutableDataSSZ(buf []byte, version int) (*ExecutableData, error) {
ep.SlotNumber = &slotNumber
pos += 8
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
pos += 4
}
// Decode variable-length fields

View file

@ -43,7 +43,7 @@ type testResponseWriter struct {
body bytes.Buffer
}
func (w *testResponseWriter) Header() http.Header { return w.headers }
func (w *testResponseWriter) Header() http.Header { return w.headers }
func (w *testResponseWriter) Write(b []byte) (int, error) { return w.body.Write(b) }
func (w *testResponseWriter) WriteHeader(code int) { w.code = code }

View file

@ -29,13 +29,13 @@ import (
)
const (
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
DefaultHTTPPort = 8545 // Default TCP port for the HTTP RPC server
DefaultWSHost = "localhost" // Default host interface for the websocket RPC server
DefaultWSPort = 8546 // Default TCP port for the websocket RPC server
DefaultAuthHost = "localhost" // Default host interface for the authenticated apis
DefaultAuthPort = 8551 // Default port for the authenticated apis
DefaultSszRestPort = 8552 // Default port for the SSZ-REST Engine API (EIP-8161)
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
DefaultHTTPPort = 8545 // Default TCP port for the HTTP RPC server
DefaultWSHost = "localhost" // Default host interface for the websocket RPC server
DefaultWSPort = 8546 // Default TCP port for the websocket RPC server
DefaultAuthHost = "localhost" // Default host interface for the authenticated apis
DefaultAuthPort = 8551 // Default port for the authenticated apis
DefaultSszRestPort = 8552 // Default port for the SSZ-REST Engine API (EIP-8161)
)
const (