mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-26 23:04:42 +00:00
Tidy up job submissions check
This commit is contained in:
parent
423cf03e1a
commit
336a7c92c9
@ -41,8 +41,7 @@ type Miner struct {
|
||||
func (job *Job) submit(nonce string) bool {
|
||||
job.Lock()
|
||||
defer job.Unlock()
|
||||
_, exist := job.submissions[nonce]
|
||||
if exist {
|
||||
if _, exist := job.submissions[nonce]; exist {
|
||||
return true
|
||||
}
|
||||
job.submissions[nonce] = struct{}{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user