After fulfilling the steps Pre-requisites, Get the source code and Ensure the security chain according to your operating system (Windows, Linux, Mac), you can compile and run a RSK node from command line following this steps.
Compiling and running the node
From the root directory where the code was downloaded execute:
./gradlew build shadow -x test
and after building run:
java -Drsk.conf.file=[conf] -cp [jar] co.rsk.Start
Replace:
- [jar]: the path to the fatjar generated by the gradle shadow command. It can be found on rskj-core/build/lib/rskj-core-{version}-all.jar
.
- [conf]: the path to the configuration file for the node. A sample configuration file can be found on: /classes/production/rskj-core/config/rsk-sample.conf
. Some settings need to be initialized and you can learn to do that here.
It's ready!