Commit 02fb5946 authored by mikael.beyene's avatar mikael.beyene
Browse files

Merge branch 'master' of git.scc.kit.edu:tf2000/pow

parents 3a92bc42 576a32c4
......@@ -10,21 +10,25 @@ Follow the steps below to setup up the project.
### Prerequisites
- Java 8 — https://www.oracle.com/java/technologies/javase-jre8-downloads.html
- Java SE Development Kit — https://www.oracle.com/java/technologies/javase-jdk16-downloads.html (or other; at least Java 8)
### Usage
1. Open a console (e.g., Git bash) and build the Jar
Before you follow the steps below, you need to [download the source code](https://git.scc.kit.edu/tf2000/pow/-/archive/master/pow-master.zip) or clone the repository with Git.
1. Open a console (e.g., `cmd` on Windows or Git Bash) and navigate to the project root folder
2. Compile the source files and build the Jar
```shell
./gradlew build
```
2. Start the application with Gradle
3. Then start the application with Gradle
```shell
./gradlew run --args="-d=0.001"
```
3. Alternatively, you can also directly run the Jar
4. Alternatively, you can also directly run the Jar
```shell
java -jar build/libs/proof-of-work.jar -d=0.001
```
Try different values for `d` in order to scale the difficulty.
Try different values for `d` in order to scale the difficulty (`0 < d <= 1`). Since the difficulty is determined by multiplying `d` with `Integer.MAX` (i.e., `2^31 - 1 = 2,147,483,647`), higher values of `d` result in a lower difficulty; the chance of `hash < difficulty` 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