Configure your RSK node to be used from a merge mining pool

Meri Herrera edited this page Sep 5, 2018 · 4 revisions

If you want to convert your node into a mining node, you have to prepare your own config file reading this page. So, you need to configure the following options:

Enable RPC mining methods

Add 'mnr' module inside rpc.modules section:

modules = [
        {
            name: "mnr",
            version: "1.0",
            enabled: "true"
         },
         #Other enabled modules
         ...
    ]

Add the miner section

Current Testnet minGasPrice value = 0 Current MainNet minGasPrice value = 59240000

# miner options
miner {
    server.enabled = true
    client.enabled = false
    minGasPrice = 59240000

    # this is a hex-encoded, 20-bytes length address where the miner gets the reward
    reward.address = <ENCODED_ADDRESS>
}
  • Your <ENCODED_ADDRESS> should be a 20-bytes value, for example:
reward.address = "83e5356c8Bb19109f5dg19900EC6c130049F8034"

Miner with coinbase secret (alternative to setting a reward address)

:exclamation: This is not recommended to be used in MainNet.

This configuration is usually used for testing, along with a local wallet hosted in the node.

# miner options
miner {
    server.enabled = true
    client.enabled = false
    minGasPrice = 59240000

    # this is a secret passphrase that is used to derive the address where the miner gets the reward.
    # please note this is stored in a local wallet and not recommended for production.
    coinbase.secret = <COINBASE_SECRET>
}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.