How does blockchain really work? I built an app to show you.
Sean Han

On this line:

while(!this.isValidHashDifficulty(hash)) {

You are using isValidHashDifficulty with one argument, but in the example above you define the function with at two arguments, hash and difficulty. You are also calling the function of some context as a method, yet above it is a plain function. How are these two resolved? Is this version a modified version attached to some class?

Show your support

Clapping shows how much you appreciated BerkeleyTrue’s story.