Skip to content

Commit

Permalink
Change new job detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy007 committed Apr 5, 2016
1 parent 099d30f commit 2ecaf42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (s *ProxyServer) fetchBlockTemplate() {
}
s.blockTemplate.Store(&newTemplate)

if height != t.Height {
log.Printf("New block to mine on %s at height: %d", rpc.Name, height)
if newTemplate.Header != t.Header {
log.Printf("New block to mine on %s at height: %d / %s", rpc.Name, height, reply[0][0:10])
}
return
}
Expand Down

0 comments on commit 2ecaf42

Please sign in to comment.