Skip to content

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

Meri Herrera edited this page Jun 14, 2018 · 5 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 = 183000000

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

    # 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)

❗ 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 = 183000000

    # 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