Skip to content

Commit cbde26e

Browse files
committed
Fix typo in orig_hashimoto function: change txid_max to txid_mix in index.md of dagger-hashimoto mining algo
1 parent d023c00 commit cbde26e

File tree

1 file changed

+1
-1
lines changed
  • src/content/translations/pt-br/developers/docs/consensus-mechanisms/pow/mining-algorithms/dagger-hashamoto

1 file changed

+1
-1
lines changed

src/content/translations/pt-br/developers/docs/consensus-mechanisms/pow/mining-algorithms/dagger-hashamoto/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def orig_hashimoto(prev_hash, merkle_root, list_of_transactions, nonce):
186186
shifted_A = hash_output_A >> i
187187
transaction = shifted_A % len(list_of_transactions)
188188
txid_mix ^= list_of_transactions[transaction] << i
189-
return txid_max ^ (nonce << 192)
189+
return txid_mix ^ (nonce << 192)
190190
```
191191

192192
Infelizmente, enquanto Hashimoto é considerado de uso intenso de RAM, ele depende da aritmética de 256 bits, o que tem uma sobrecarga computacional considerável. No entanto, Dagger-Hashimoto usa apenas os 64 bits menos significativos ao indexar seu conjunto de dados para resolver esta questão.

0 commit comments

Comments
 (0)