3

Is there a way to keep "start_mining 2" mining continuously? If so, what command can I use? I started "start_mining 2" yesterday, left for work and came home and mining appeared to have stopped. Thoughts?...

user36303
  • 34,928
  • 2
  • 58
  • 123
aarongary2002
  • 371
  • 3
  • 6

1 Answers1

2

start_mining 2 is supposed to mine continously.

Mining is paused at a few points, when modifying the blockchain. It is possible that a bug crept in, causing mining to not get out of pause. A bug report on https://github.com/monero-project/monero/issues will be help in getting this fixed.

In the meantime, you can have a simple cron job restarting mining through RPC, like this:

curl -v -X POST http://127.0.0.1:18081/start_mining -d '{"miner_address":"insertyouraddresshere","threads":2}' -H 'Content-Type: application/json'

user36303
  • 34,928
  • 2
  • 58
  • 123