From 0196e6ae95cd7869ebe2ad695ff52eb82082824d Mon Sep 17 00:00:00 2001 From: Sammy Libre Date: Wed, 7 Dec 2016 12:48:13 +0500 Subject: [PATCH] Reset round shares on block accept --- go-pool/stratum/miner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go-pool/stratum/miner.go b/go-pool/stratum/miner.go index 4c50e31..a28c46d 100644 --- a/go-pool/stratum/miner.go +++ b/go-pool/stratum/miner.go @@ -178,6 +178,7 @@ func (m *Miner) processShare(s *StratumServer, e *Endpoint, job *Job, t *BlockTe s.refreshBlockTemplate(true) atomic.AddUint64(&m.accepts, 1) atomic.AddUint64(&r.Accepts, 1) + atomic.StoreInt64(&s.roundShares, 0) atomic.StoreInt64(&r.LastSubmissionAt, util.MakeTimestamp()) log.Printf("Block %v found at height %v by miner %v@%v", blockFastHash[0:6], t.height, m.id, m.ip) }