Преглед на файлове

PIP-0009: pseudo-code bug fix

Herman Schoenfeld преди 7 години
родител
ревизия
e5780697ff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      PIP/PIP-0009.md

+ 1 - 1
PIP/PIP-0009.md

@@ -100,7 +100,7 @@ A low-memory, GPU and ASIC-resistant hash algorithm called **Random Hash** is pr
                 roundOutputs.AddMany(parentOutputs)
                 roundOutputs.AddMany(parentOutputs)
                 
                 
                 let otherNonceHeader = ChangeNonce(blockHeader, gen.NextDWord)
                 let otherNonceHeader = ChangeNonce(blockHeader, gen.NextDWord)
-                let neighborOutputs = RandomHash(blockHeader, Round - 1)
+                let neighborOutputs = RandomHash(otherNonceHeader, Round - 1)
                 roundOutputs.AddMany(neighborOutputs)
                 roundOutputs.AddMany(neighborOutputs)
                 
                 
                 let roundInput = Compress(roundOutputs)
                 let roundInput = Compress(roundOutputs)