From 441bf59bb9d0f6f1b1fb8208449a8e99160eeac1 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Fri, 21 Apr 2023 18:02:35 +0200 Subject: [PATCH] mining.submit: handleTCPSubmitRPC failed EthereumStratum/1.0.0 --- proxy/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/handlers.go b/proxy/handlers.go index 895440f..1da5a1d 100644 --- a/proxy/handlers.go +++ b/proxy/handlers.go @@ -87,7 +87,7 @@ func (s *ProxyServer) handleTCPSubmitRPC(cs *Session, id string, params []string func (s *ProxyServer) handleSubmitRPC(cs *Session, login, id string, params []string) (bool, *ErrorReply) { // Check if the number of parameters is correct - if len(params) < 3 || len(params[0]) != 18 || len(params[1]) != 66 || len(params[2]) != 66 { + if len(params) < 3 || len(params[0]) != 16 || len(params[1]) != 64 || len(params[2]) != 64 { s.policy.ApplyMalformedPolicy(cs.ip) log.Printf("Malformed params from %s@%s %v", login, cs.ip, params) return false, &ErrorReply{Code: -1, Message: "Invalid params"}