diff --git a/proofofwork.go b/proofofwork.go index 967a4bc..cc10c1d 100644 --- a/proofofwork.go +++ b/proofofwork.go @@ -56,7 +56,9 @@ func (pow *ProofOfWork) Run() (int, []byte) { data := pow.prepareData(nonce) hash = sha256.Sum256(data) - fmt.Printf("\r%x", hash) + if math.Remainder(float64(nonce), 100000) == 0 { + fmt.Printf("\r%x", hash) + } hashInt.SetBytes(hash[:]) if hashInt.Cmp(pow.target) == -1 {