consensus/ethash: fix typo (#26016)

fix typo
pull/26089/head
zhiqiangxu 2 years ago committed by GitHub
parent 8578eb2fe1
commit 2b65219550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      consensus/ethash/algorithm.go

@ -339,7 +339,7 @@ func hashimoto(hash []byte, nonce uint64, size uint64, lookup func(index uint32)
// Calculate the number of theoretical rows (we use one buffer nonetheless) // Calculate the number of theoretical rows (we use one buffer nonetheless)
rows := uint32(size / mixBytes) rows := uint32(size / mixBytes)
// Combine header+nonce into a 64 byte seed // Combine header+nonce into a 40 byte seed
seed := make([]byte, 40) seed := make([]byte, 40)
copy(seed, hash) copy(seed, hash)
binary.LittleEndian.PutUint64(seed[32:], nonce) binary.LittleEndian.PutUint64(seed[32:], nonce)

Loading…
Cancel
Save