aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
Commit message (Collapse)AuthorAgeFilesLines
...
* Moved around checking of AC power in order to bail quicker to sleep if not ↵Dion Ahmetaj2017-02-101-4/+6
| | | | plugged in.
* Moved setting of previous process times to block where background mining is ↵Dion Ahmetaj2017-02-101-14/+11
| | | | started, and added an explicit sleep in that block to wait for some mining to occur.
* Set background mining started bool to false on bg thread start. If ↵Dion Ahmetaj2017-02-101-0/+1
| | | | mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop).
* Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2017-02-102-11/+442
| | | | | | | | | | | source, and CPU has been idle for some time, then begin mining to some threshold (don't destroy the users' CPU). This patch only supports windows and linux (I've only tested on Win64 and Ubuntu). The variables currently default to pretty conservative values (i.e. 20% CPU mining threshold).
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-0822-0/+4908