Browse Source

Update stratum.go

master
yuriy0803 3 years ago committed by GitHub
parent
commit
27f87ff251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      proxy/stratum.go

2
proxy/stratum.go

@ -332,7 +332,7 @@ case "eth_submitWork":
var params []string var params []string
err := json.Unmarshal(req.Params, &params) err := json.Unmarshal(req.Params, &params)
// 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

Loading…
Cancel
Save