mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-13 16:47:59 +00:00
Add last block submission timestamp
This commit is contained in:
parent
51c9f28c4b
commit
2c1da85ee0
@ -194,6 +194,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(&r.LastSubmissionAt, util.MakeTimestamp())
|
||||
log.Printf("Block %v found at height %v by miner %v@%v", blockFastHash[0:6], t.Height, m.Login, m.IP)
|
||||
}
|
||||
} else if hashDiff < job.Difficulty {
|
||||
|
Loading…
Reference in New Issue
Block a user