aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-05-21copyright: bump to 2024copyCat1-1/+1
2023-01-16Copyright: Update to 2023mj-xmr1-1/+1
Co-authored-by: plowsof <plowsof@protonmail.com> extra files
2022-04-06Merge pull request #8223luigi11111-2/+2
17772ef Eliminate dependence on boost::interprocess #8223 (Jeffrey)
2022-03-30Eliminate dependence on boost::interprocess #8223Jeffrey1-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
2022-03-04Copyright: Update to 2022mj-xmr1-1/+1
2020-08-27core: fix mining from a block that's not the current topmoneromooo-monero1-3/+3
2020-08-26Merge pull request #6607Alexander Blair1-4/+3
eb1b321fe miner: increase min/max intervals to full extents (moneromooo-monero)
2020-05-31miner: increase min/max intervals to full extentsmoneromooo-monero1-4/+3
This prevents setting target to, eg, 65 being ignored and remove an unused constant
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2019-10-31cryptonote: untangle dependency from miner to blockchainmoneromooo-monero1-4/+4
It causes link errors at least on mac
2019-09-25RandomX integrationHoward Chu1-2/+5
Support RandomX PoW algorithm
2019-06-09miner: fix double free of thread attributesston1th1-1/+1
issue: #5568
2019-04-11functional_tests: add more blockchain related testsmoneromooo-monero1-1/+2
Related to emission, reorgs, getting tx data back, output distribution and histogram
2019-04-01miner: fix race when stopping mining with start mining enabledmoneromooo-monero1-0/+1
2019-03-17Merge pull request #5185Riccardo Spagni1-1/+3
59478c80 daemon: new mining_status command (moneromooo-monero)
2019-03-09daemon: new mining_status commandmoneromooo-monero1-1/+3
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-02-23miner: it can now autodetect the optimal number of threadsmoneromooo-monero1-0/+5
2018-11-15Removed a lot of unnecessary includesMartijn Otto1-5/+0
2018-03-05Stagenetstoffu1-1/+1
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-04-19Add expected total reward to RPC "getblocktemplate".assylias1-1/+1
Only works from V5 fork onward - returns 0 before that block.
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-16More robust battery status handling.Dion Ahmetaj1-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.
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj1-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.
2017-02-10Changed ac_line_status to on_battery_power.Dion Ahmetaj1-1/+1
2017-02-10Use defined directive to silence pre-proc warnings.Dion Ahmetaj1-1/+1
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj1-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).
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi841-0/+126