Skip to content

Commit

Permalink
consensus/ethash: fix typo (#26016)
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
zhiqiangxu authored Nov 1, 2022
1 parent 8578eb2 commit 2b65219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/ethash/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
rows := uint32(size / mixBytes)

// Combine header+nonce into a 64 byte seed
// Combine header+nonce into a 40 byte seed
seed := make([]byte, 40)
copy(seed, hash)
binary.LittleEndian.PutUint64(seed[32:], nonce)
Expand Down

0 comments on commit 2b65219

Please sign in to comment.