aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-02-21Merge pull request #1731Riccardo Spagni1-3/+3
a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
2017-02-21Merge pull request #1733Riccardo Spagni1-4/+3
a493c0b1 BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so required a definition. (Dion Ahmetaj)
2017-02-21Merge pull request #1744Riccardo Spagni1-104/+5
a5a0a3c8 core: updates can now be downloaded (and SHA256 hash checked) (moneromooo-monero) 216f062e util: add a SHA256 function (moneromooo-monero) 4bf78492 mlog: only silence errors for net by default, not net.* (moneromooo-monero) d282cfcc core: test key images against validity domain (moneromooo-monero) efb72e74 http_client: add a couple consts (moneromooo-monero) f640512c Optionally query moneropulse DNS records to check for updates (moneromooo-monero) e3cae4ae core: display any fork warning at startup too (moneromooo-monero) 969ad710 dns_utils: fix first checked DNS entry being ignored (moneromooo-monero) 08c3f380 util: add a vercmp function to compare version numbers (moneromooo-monero) e8a7525c dns_utils: factor TXT record loading code from checkpoint code (moneromooo-monero)
2017-02-20dns_utils: factor TXT record loading code from checkpoint codemoneromooo-monero1-104/+5
2017-02-16More robust battery status handling.Dion Ahmetaj2-21/+64
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.
2017-02-15BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so ↵Dion Ahmetaj1-4/+3
required a definition. Instead of adding a declaration to cpp file, I changed it to non odr-used.
2017-02-14hardfork: tone down some logsmoneromooo-monero1-3/+3
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2-4/+4
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.
2017-02-10Changed ac_line_status to on_battery_power.Dion Ahmetaj2-6/+6
2017-02-10Use defined directive to silence pre-proc warnings.Dion Ahmetaj1-1/+1
2017-02-10Cleaned up some logging. Thanks to moneromooo for help.Dion Ahmetaj1-20/+20
2017-02-10Added some //TODO comments pertaining to returning enums instead of bools in ↵Dion Ahmetaj1-0/+5
order to be better able to handle failure states.
2017-02-10Moved around checking of AC power in order to bail quicker to sleep if not ↵Dion Ahmetaj1-4/+6
plugged in.
2017-02-10Moved setting of previous process times to block where background mining is ↵Dion Ahmetaj1-14/+11
started, and added an explicit sleep in that block to wait for some mining to occur.
2017-02-10Set background mining started bool to false on bg thread start. If ↵Dion Ahmetaj1-0/+1
mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop).
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2-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).
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi8422-0/+4908