A fully functional and inefficient cryptocurrency, written in Java.
Compile the project with maven:
mvn compile
To test the project, use maven:
mvn test
The script start.sh
can start and stop the different jar files. To start a specific jar use
start.sh start <type>
Where <type>
is the name of the jar file. To start all jars, you can use the type all
.
You can also stop and restart the instances with the same sementic:
start.sh stop <type>
start.sh restart <type>
To view and interact (only with "client") with an already launched program you can type
start.sh view <type>
You can ignore the file start.sh
and use mainstream command, as follow:
java -jar dist/master.jar
java -jar dist/relay.jar [ip] [port]
java -jar dist/miner.jar <user> <password> [ip] [port]
java -jar dist/client.jar [ip] [port]
Where []
elements are optionnal and <>
are mandatory.
- Relay: ip and port of the master
- Client: ip and port of the relay
- Miner: user and password of the user who will recieved the reward. You can also specify the ip and port of the relay.