Skip to content

Running your own mining local network

Ruben Altman edited this page Nov 13, 2017 · 5 revisions

In the previous steps we configured a single node and it was great but not very useful since the configuration used was not set for mining. As we know, mining is needed in order to publish contracts so let's configure our node to mine. A sample configuration for mining is miner1.conf. Don't forget to fill the missing settings in miner1.conf just like we did in the RSK configuration as is explained here.

In IntelliJ IDEA, copy the existing RSK configuration:

img

And change the VM options for the miner node:

img

To setup more mining nodes two more configurations (miner2.conf and miner3.conf) can be found on the utilities repo. Repeat the same process used for miner1 and your local mining network is ready to go!

Running miners

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 party :)

Clone this wiki locally