From 2ecaf4231712671143425700a436187cbfec395b Mon Sep 17 00:00:00 2001 From: Sammy Libre Date: Wed, 6 Apr 2016 00:14:51 +0500 Subject: [PATCH] Change new job detection --- proxy/blocks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/blocks.go b/proxy/blocks.go index ca2942a..af2b7a9 100644 --- a/proxy/blocks.go +++ b/proxy/blocks.go @@ -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 }