Skip to content

Commit

Permalink
consensus/ethash: fix typo (ethereum#26016)
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
zhiqiangxu authored and shekhirin committed Jun 6, 2023
1 parent 5241fcf commit 23b2190
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 23b2190

Please sign in to comment.