After opening IDEA we need to load the RskJ project, this can be done by using the Import project option in IDEA.
To do that follow the next steps:
rskj\build.gradleand select it.
We need to create a new configuration profile to run the node from IDEA. That can be done by clicking on Run -> Edit Configurations or as shown in the following picture:
Then set the options as shown below:
Default (1.8 - SDK of 'rsk-core_main' module)
rskj/rskj-core/build.gradleand sync it from
We are ready to run the node using IDEA, just press the Start button at the right of the configuration we’ve just created.
If everything is OK, you should see the debug information like that:
And yes! Congratulations! Now you’re running a local RSK node :)
You’re joined to Mainnet by default.
If you want to switch the network, add:
Inside the field
Program Arguments in your run configuration.
We hope our troubleshooting section can help you!