Set Config Preferences
The Rootstock node can be started with different CLI flags.
Setting config preferences
See how to set your config:
… to run the node.
Remember: You need to restart the node if you've changed any configuration option.
Using Ubuntu or Docker
Your node's config file is in /etc/rsk.
Default configurations are defined there and they are the same as the config.
You should edit the config related with the network you are using (mainnet.conf, testnet.conf, regtest.conf).
Check reference all the configuration options you could change.
Using Windows
For other operating systems, including Windows, please use the -Drsk.conf.file option as specified below.
Using java command
1. Create a .conf file
You can create a file with the configuration options that you want to replace from the default. Default configurations are defined in the Config.
The extension of the file must be .conf.
Check here for all the configuration option.
As an example, if you want to change the default database directory, your config file should only contain:
database {
dir = /new/path/for/database
reset = false
}