From 3af030a420412b26cdc34c13769b9872b1136aa9 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 16 Apr 2023 23:51:13 +0200 Subject: [PATCH] Update stratum.go --- proxy/stratum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/stratum.go b/proxy/stratum.go index 7d6fb84..764808b 100644 --- a/proxy/stratum.go +++ b/proxy/stratum.go @@ -332,7 +332,7 @@ case "eth_submitWork": var params []string err := json.Unmarshal(req.Params, ¶ms) // Check if there was an error unmarshaling the parameters or if they don't meet the required length and format criteria - if err != nil || len(params) < 3 || len(params[0]) != 18 || len(params[1]) != 66 || len(params[2]) != 66 { + if err != nil || len(params) < 3 || len(params[0]) != 16 || len(params[1]) != 64 || len(params[2]) != 64 { // If there was an error, log the issue and return it log.Println("Malformed stratum request params from", cs.ip) return err