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?...
Asked
Active
Viewed 151 times
1 Answers
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