|
|
|
@ -332,7 +332,7 @@ case "eth_submitWork": |
|
|
|
var params []string |
|
|
|
var params []string |
|
|
|
err := json.Unmarshal(req.Params, ¶ms) |
|
|
|
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
|
|
|
|
// 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]) != 16 || len(params[1]) != 64 || len(params[2]) != 64 { |
|
|
|
if err != nil || len(params) < 3 || len(params[0]) != 18 || len(params[1]) != 66 || len(params[2]) != 66 { |
|
|
|
// If there was an error, log the issue and return it
|
|
|
|
// If there was an error, log the issue and return it
|
|
|
|
log.Println("Malformed stratum request params from", cs.ip) |
|
|
|
log.Println("Malformed stratum request params from", cs.ip) |
|
|
|
return err |
|
|
|
return err |
|
|
|
|