From 650273aa6c1a20a2b2e6dd858135e3f11d4f4aaa Mon Sep 17 00:00:00 2001 From: Giulio Rebuffo Date: Thu, 5 Mar 2026 14:53:05 +0000 Subject: [PATCH] fix lint: ineffassign in ssz.go, goimports in defaults.go and ssz_rest_test.go --- beacon/engine/ssz.go | 2 -- eth/catalyst/ssz_rest_test.go | 2 +- node/defaults.go | 14 +++++++------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/beacon/engine/ssz.go b/beacon/engine/ssz.go index 51f11e67c1..24858f6a78 100644 --- a/beacon/engine/ssz.go +++ b/beacon/engine/ssz.go @@ -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 diff --git a/eth/catalyst/ssz_rest_test.go b/eth/catalyst/ssz_rest_test.go index 8c8c1df243..44ae91c3c0 100644 --- a/eth/catalyst/ssz_rest_test.go +++ b/eth/catalyst/ssz_rest_test.go @@ -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 } diff --git a/node/defaults.go b/node/defaults.go index 7fa5df421b..24a68bf816 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -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 (