Configure RSKj node for mining

In the previous steps we launched a single node. However the default configuration is not suitable for mining. Mining is needed in order to publish contracts so let’s configure our node to mine. A sample configuration for mining is miner1.conf.

In IntelliJ IDEA, copy the existing RSK configuration and add the VM options for the miner node:

img

With the Run button, you’re running your first miner node!

Running miners

To setup more mining nodes two more configurations are here: (miner2.conf and miner3.conf).

We have now three configurations for different miners, now the funny part, let’s run our local RSK Smart network. Go to Run configuration button again and start all the miners configurations one after the other.

Congratulations! you’re running a local RSK mining node!