Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion eth/rpc/rpcapi/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ func (s *websocketsServer) readLoop(wsConn *wsConn) {
}
}

// tcpGetAndSendResponse sends error response to client if params is invalid
// getParamsAndCheckValid extracts and validates the params from the given message, sending an
// error response on failure.
func (s *websocketsServer) getParamsAndCheckValid(msg map[string]any, wsConn *wsConn) ([]any, bool) {
params, ok := msg["params"].([]any)
if !ok {
Expand Down