Staking - reddcoin-project/reddcoin GitHub Wiki

Configure Staking

Reddcoin 4.22.x introduced the ability to load multiple wallets for staking.
This introduced a new configuration to be able to enable staking, and selecting which wallet to enable staking.

Three new commands

  1. stake (cli, config)

    Specify wallet name to stake at startup.
    Can be used multiple times to load multiple wallets. Path is to a directory containing wallet data and log files.
    If the path is not absolute, it is interpreted relative to .
    This only loads existing wallets.

    -stake=<path>
    

    e.g

    -stake=my_wallet
    
  2. setstaking (rpc)

    setstaking ( enabled load_on_startup )
    Gets or sets the current wallet staking configuration.
    When called without an argument, returns the current status of staking for all loaded wallets.
    When called with 1 argument, enables or disables staking for the currently selected wallet. When called with 2 argument, saves the configuration to load on start up.

    enable staking for current wallet and save state to load on start up

    setstaking true true
    
  3. staking (cli, config, rpc)

    Gets or sets the current global staking configuration.
    When called without an argument, returns the current status of staking.
    When called with an argument (true, false), enables or disables staking.

    enable staking for the node

    staking true
    
⚠️ **GitHub.com Fallback** ⚠️