Browse Source

PIP-0009: pseudo-code bug fix

Herman Schoenfeld 7 years ago
parent
commit
e5780697ff
1 changed files with 1 additions and 1 deletions
  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)