0

Is it possible to launch the monero-wallet-cli for mining with the experimental background-mining feature on?

And would it be possible to connect to a pool for that?

Basically I just want my CPU cores to mine whenever my computer goes idle or is underutilizing the cores. As far as I can see the "monerod" miner did not allow for "background mining if idle".

I'm using Arch Linux btw.

2

The background mining system does not use a pool. It will instruct monerod to mine, and monerod does not use a pool.

Background mining has existed in monerod for a few years. It was just hard to find, and so not used much. This is the reason why it was exposed in the wallet too.

To enable background mining in monerod, you pass extra arguments to start_mining:

help start_mining
Command usage: 
  start_mining <addr> [<threads>|auto] [do_background_mining] [ignore_battery]

Command description: 
  Start mining for specified address. Defaults to 1 thread and no background mining. Use "auto" to autodetect optimal number of threads.

Note that since it's monerod actually mining, you can then exit monero-wallet-cli and monerod will continue mining. monerod commands work as well, so stop_mining in monerod will then stop background mining, etc.

  • Thanks, this helped me figure out the actual command line: monerod --start-mining $wallet --mining-threads $threads --bg-mining-enable --bg-mining-ignore-battery – Muppet Apr 26 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.