mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-03 13:38:39 +00:00
fix lint: ineffassign in ssz.go, goimports in defaults.go and ssz_rest_test.go
This commit is contained in:
parent
b545134da5
commit
650273aa6c
3 changed files with 8 additions and 10 deletions
|
|
@ -737,7 +737,6 @@ func EncodeExecutableDataSSZ(ep *ExecutableData, version int) []byte {
|
||||||
balOffset += len(withdrawalData)
|
balOffset += len(withdrawalData)
|
||||||
}
|
}
|
||||||
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
|
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
|
||||||
pos += 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variable part
|
// Variable part
|
||||||
|
|
@ -816,7 +815,6 @@ func DecodeExecutableDataSSZ(buf []byte, version int) (*ExecutableData, error) {
|
||||||
ep.SlotNumber = &slotNumber
|
ep.SlotNumber = &slotNumber
|
||||||
pos += 8
|
pos += 8
|
||||||
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
|
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
|
||||||
pos += 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode variable-length fields
|
// Decode variable-length fields
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ type testResponseWriter struct {
|
||||||
body bytes.Buffer
|
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) Write(b []byte) (int, error) { return w.body.Write(b) }
|
||||||
func (w *testResponseWriter) WriteHeader(code int) { w.code = code }
|
func (w *testResponseWriter) WriteHeader(code int) { w.code = code }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,13 +29,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
|
DefaultHTTPHost = "localhost" // Default host interface for the HTTP RPC server
|
||||||
DefaultHTTPPort = 8545 // Default TCP port 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
|
DefaultWSHost = "localhost" // Default host interface for the websocket RPC server
|
||||||
DefaultWSPort = 8546 // Default TCP port for the websocket RPC server
|
DefaultWSPort = 8546 // Default TCP port for the websocket RPC server
|
||||||
DefaultAuthHost = "localhost" // Default host interface for the authenticated apis
|
DefaultAuthHost = "localhost" // Default host interface for the authenticated apis
|
||||||
DefaultAuthPort = 8551 // Default port for the authenticated apis
|
DefaultAuthPort = 8551 // Default port for the authenticated apis
|
||||||
DefaultSszRestPort = 8552 // Default port for the SSZ-REST Engine API (EIP-8161)
|
DefaultSszRestPort = 8552 // Default port for the SSZ-REST Engine API (EIP-8161)
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue