You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miners are currently getting disconnect when they submit a duplicate shares, no matter what the limits are. Miners shouldn't get disconnect if they submit a single duplicate share.
Limits are currently getting applied to invalid share, but not to duplicate share where a disconnect is applied immediately.
You can find the code proxy/handlers.go, line 75-78.
if exist {
log.Printf("Duplicate share from %s@%s %v", login, cs.ip, params)
return false, &ErrorReply{Code: 22, Message: "Duplicate share"}
}
if !validShare {
log.Printf("Invalid share from %s@%s", login, cs.ip)
// Bad shares limit reached, return error and close
if !ok {
return false, &ErrorReply{Code: 23, Message: "Invalid share"}
}
return false, nil
}
Disconnecting peers with a single duplicate share currently breaks mining, especially with NiceHash rented hashpower (pay for unused hashrate) or with my own miners (lose hashrate due to disconnect).
I can submit a pull request if you agree with the assessment.
The text was updated successfully, but these errors were encountered:
Miners are currently getting disconnect when they submit a duplicate shares, no matter what the limits are. Miners shouldn't get disconnect if they submit a single duplicate share.
Limits are currently getting applied to invalid share, but not to duplicate share where a disconnect is applied immediately.
You can find the code proxy/handlers.go, line 75-78.
As shown here https://github.com/sammy007/open-ethereum-pool/blob/master/proxy/stratum.go#L56, if it returns an ErrorReply instead of nil, the client gets disconnected. I suggest adding a limit similar to invalid share found at line 80-87.
Disconnecting peers with a single duplicate share currently breaks mining, especially with NiceHash rented hashpower (pay for unused hashrate) or with my own miners (lose hashrate due to disconnect).
I can submit a pull request if you agree with the assessment.
The text was updated successfully, but these errors were encountered: