aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.h
Commit message (Collapse)AuthorAgeFilesLines
* Stagenetstoffu2018-03-051-1/+1
|
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* Add expected total reward to RPC "getblocktemplate".assylias2017-04-191-1/+1
| | | | Only works from V5 fork onward - returns 0 before that block.
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* More robust battery status handling.Dion Ahmetaj2017-02-161-2/+6
| | | | | | Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.
* Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2017-02-101-1/+1
| | | | 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.
* Changed ac_line_status to on_battery_power.Dion Ahmetaj2017-02-101-1/+1
|
* Use defined directive to silence pre-proc warnings.Dion Ahmetaj2017-02-101-1/+1
|
* Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2017-02-101-5/+48
| | | | | | | | | | | 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-081-0/+126