Commit Graph

312 Commits (a053814e71dfa9d66789b8cad81fc01670fe8505)

Author SHA1 Message Date
Dion Ahmetaj a493c0b196 BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so required a definition.
7 years ago
moneromooo-monero c488eca5e8
hardfork: tone down some logs
7 years ago
Dion Ahmetaj ad95e65028 Added a note about smart mining to status command. Fixed up a bug where I was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
7 years ago
Dion Ahmetaj e4dfd2fb63 Changed ac_line_status to on_battery_power.
7 years ago
Dion Ahmetaj 23c73269ca Use defined directive to silence pre-proc warnings.
7 years ago
Dion Ahmetaj d2c7d0f6b0 Cleaned up some logging. Thanks to moneromooo for help.
7 years ago
Dion Ahmetaj 68652cd94d Added some //TODO comments pertaining to returning enums instead of bools in order to be better able to handle failure states.
7 years ago
Dion Ahmetaj 0b1045ed7d Moved around checking of AC power in order to bail quicker to sleep if not plugged in.
7 years ago
Dion Ahmetaj 2937fdbbbf Moved setting of previous process times to block where background mining is started, and added an explicit sleep in that block to wait for some mining to occur.
7 years ago
Dion Ahmetaj 21a1e0252f Set background mining started bool to false on bg thread start. If mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop).
7 years ago
Dion Ahmetaj 345ed4823c Background/smart mining. If a users' computer is plugged into a power
7 years ago
kenshi84 8027ce0c75 extract some basic code from libcryptonote_core into libcryptonote_basic
7 years ago