Commit 1c137b4c authored by mikael.beyene's avatar mikael.beyene
Browse files

Update README.md

parent 59253689
......@@ -20,15 +20,16 @@ Before you follow the steps below, you need to [download the source code](https:
2. Compile the source files and build the Jar
```shell
./gradlew build
gradlew build
```
3. Then start the application with Gradle
On Unix-line operating systems use `./gradlew` instead.
3. Then start the application with Gradle. `t` is the targt scale factor. See below for the explanation.
```shell
./gradlew run --args="-d=0.001"
gradlew run --args="-t=0.001"
```
4. Alternatively, you can also directly run the Jar
```shell
java -jar build/libs/proof-of-work.jar -d=0.001
java -jar build/libs/proof-of-work.jar -t=0.001
```
Try different values for `d` in order to scale the hash target (`0 < d <= 1`). Since the target is determined by multiplying `d` with `Integer.MAX` (i.e., `2^31 - 1 = 2,147,483,647`), for higher values of `d` the chance of finding a nonce that satisfies `hash < target` is high.
Try different values for `t` in order to scale the hash target (`0 < t <= 1`). Since the target is determined by multiplying `t` with `Integer.MAX` (i.e., `2^31 - 1 = 2,147,483,647`), for higher values of `t` the chance of finding a nonce that satisfies `hash < target` is high.
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