Commit 8b1a89b9 authored by Michel Schudel's avatar Michel Schudel

fixed another typo.

parent 24ef20df
......@@ -152,7 +152,7 @@ Implement the `proofOfWork` function on the` BlockChain` class:
1. Take the proof of work of the most recent block in the blockchain
2. Create a new proof of work: 0.
3. Concatenate the old and the new proof. So for block 0 and 1, you would have '00' to start with.
4. Create a hash of the string using `DigestUtils.sha256hex(string)`
4. Create a hash of the string using `DigestUtils.sha256Hex(string)`
5. Does the hash start with `0000`? Then the new proof of work is valid. Return it.
6. Does the hash not start with `0000`? Increment the new proof of work by 1 and return to step 3.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment