Skip to content

Commit 4b5e797

Browse files
authored
Merge pull request #15287 from ernestodeltoro/typo_thoretical
ethash: fix typo
2 parents 8d8034f + 2e83c82 commit 4b5e797

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

consensus/ethash/algorithm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func generateCache(dest []uint32, epoch uint64, seed []byte) {
102102
header.Cap *= 4
103103
cache := *(*[]byte)(unsafe.Pointer(&header))
104104

105-
// Calculate the number of thoretical rows (we'll store in one buffer nonetheless)
105+
// Calculate the number of theoretical rows (we'll store in one buffer nonetheless)
106106
size := uint64(len(cache))
107107
rows := int(size) / hashBytes
108108

@@ -187,7 +187,7 @@ func fnvHash(mix []uint32, data []uint32) {
187187
// generateDatasetItem combines data from 256 pseudorandomly selected cache nodes,
188188
// and hashes that to compute a single dataset node.
189189
func generateDatasetItem(cache []uint32, index uint32, keccak512 hasher) []byte {
190-
// Calculate the number of thoretical rows (we use one buffer nonetheless)
190+
// Calculate the number of theoretical rows (we use one buffer nonetheless)
191191
rows := uint32(len(cache) / hashWords)
192192

193193
// Initialize the mix
@@ -287,7 +287,7 @@ func generateDataset(dest []uint32, epoch uint64, cache []uint32) {
287287
// hashimoto aggregates data from the full dataset in order to produce our final
288288
// value for a particular header hash and nonce.
289289
func hashimoto(hash []byte, nonce uint64, size uint64, lookup func(index uint32) []uint32) ([]byte, []byte) {
290-
// Calculate the number of thoretical rows (we use one buffer nonetheless)
290+
// Calculate the number of theoretical rows (we use one buffer nonetheless)
291291
rows := uint32(size / mixBytes)
292292

293293
// Combine header+nonce into a 64 byte seed

0 commit comments

Comments
 (0)