Skip to content

Commit

Permalink
Log stale share as reject
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy007 committed Apr 27, 2016
1 parent 30b60bc commit a366e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (m *Miner) processShare(s *ProxyServer, t *BlockTemplate, diff string, para
h, ok := t.headers[hashNoNonce]
if !ok {
log.Printf("Stale share from %v@%v", m.Id, m.IP)
atomic.AddUint64(&m.rejects, 1)
return false
}
mixDigest := params[2]
Expand Down

0 comments on commit a366e68

Please sign in to comment.