aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8223luigi11112022-04-061-2/+2
|\ | | | | | | 17772ef Eliminate dependence on boost::interprocess #8223 (Jeffrey)
| * Eliminate dependence on boost::interprocess #8223Jeffrey2022-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of `boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example, when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so I replaced it with `std::atomic<bool>`. You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211. Additional changes from review: * Make some local variables const * Change postfix operators to prefix operators where value was not need
* | Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|/
* core: fix mining from a block that's not the current topmoneromooo-monero2020-08-271-3/+3
|
* Merge pull request #6607Alexander Blair2020-08-261-4/+3
|\ | | | | | | eb1b321fe miner: increase min/max intervals to full extents (moneromooo-monero)
| * miner: increase min/max intervals to full extentsmoneromooo-monero2020-05-311-4/+3
| | | | | | | | | | | | This prevents setting target to, eg, 65 being ignored and remove an unused constant
* | Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
|/ | | | Update copyright year to 2020
* cryptonote: untangle dependency from miner to blockchainmoneromooo-monero2019-10-311-4/+4
| | | | It causes link errors at least on mac
* RandomX integrationHoward Chu2019-09-251-2/+5
| | | | Support RandomX PoW algorithm
* miner: fix double free of thread attributesston1th2019-06-091-1/+1
| | | | issue: #5568
* functional_tests: add more blockchain related testsmoneromooo-monero2019-04-111-1/+2
| | | | | Related to emission, reorgs, getting tx data back, output distribution and histogram
* miner: fix race when stopping mining with start mining enabledmoneromooo-monero2019-04-011-0/+1
|
* Merge pull request #5185Riccardo Spagni2019-03-171-1/+3
|\ | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * daemon: new mining_status commandmoneromooo-monero2019-03-091-1/+3
| |
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
| |
* | miner: it can now autodetect the optimal number of threadsmoneromooo-monero2019-02-231-0/+5
|/
* Removed a lot of unnecessary includesMartijn Otto2018-11-151-5/+0
|
* 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