mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-13 00:27:54 +00:00
Fix typo
This commit is contained in:
parent
f4964a23f8
commit
2ab620d673
@ -161,7 +161,7 @@ func (m *Miner) processShare(s *StratumServer, cs *Session, job *Job, t *BlockTe
|
||||
return false
|
||||
}
|
||||
|
||||
hashDiff, ok := util.GetHashDifficulty(hashBytes) // FIXME: Will return max int64 value if overflows
|
||||
hashDiff, ok := util.GetHashDifficulty(hashBytes)
|
||||
if !ok {
|
||||
log.Printf("Bad hash from miner %v@%v", m.id, cs.ip)
|
||||
atomic.AddInt64(&m.invalidShares, 1)
|
||||
|
@ -29,7 +29,7 @@ func TestGetHashDifficulty(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetHashDifficultyWothBrokenHash(t *testing.T) {
|
||||
func TestGetHashDifficultyWithBrokenHash(t *testing.T) {
|
||||
hash := ""
|
||||
hashBytes, _ := hex.DecodeString(hash)
|
||||
shareDiff, ok := GetHashDifficulty(hashBytes)
|
||||
|
Loading…
Reference in New Issue
Block a user