summaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
Commit message (Collapse)AuthorAgeFilesLines
* miner: use verification mode for low diff one block nonce searchesmoneromooo-monero2020-02-061-1/+1
| | | | This avoids lengthy init times when testing
* cryptonote: untangle dependency from miner to blockchainmoneromooo-monero2019-10-311-5/+5
| | | | It causes link errors at least on mac
* Add also ifdef __x86_64__pkubaj2019-10-131-2/+2
|
* Fix build on FreeBSD/!x86pkubaj2019-10-131-0/+4
| | | Checking battery status uses x86-only headers and functions. Remove this functionality to get it to build on other architectures.
* RandomX integrationHoward Chu2019-09-251-4/+9
| | | | Support RandomX PoW algorithm
* Make null hash constants constexprLev Sizov2019-09-051-1/+1
| | | | Simplify m_template initialization in miner
* Removed unused boost/value_init headerLev Sizov2019-09-021-1/+0
|
* Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez2019-09-021-1/+1
|
* miner: fix --bg-mining-enable descriptionmoneromooo-monero2019-07-021-1/+1
|
* miner: fix double free of thread attributesston1th2019-06-091-9/+5
| | | | issue: #5568
* Increment m_threads_active when mining thread startsDoyle2019-04-151-0/+1
|
* functional_tests: add more blockchain related testsmoneromooo-monero2019-04-111-1/+2
| | | | | Related to emission, reorgs, getting tx data back, output distribution and histogram
* Merge pull request #5381Riccardo Spagni2019-04-111-6/+9
|\ | | | | | | def40161 miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
| * miner: fix race when stopping mining with start mining enabledmoneromooo-monero2019-04-011-6/+9
| |
* | wallet: new option to start background miningmoneromooo-monero2019-04-041-5/+11
|/ | | | | | The setup-background-mining option can be used to select background mining when a wallet loads. The user will be asked the first time the wallet is created.
* Merge pull request #5288Riccardo Spagni2019-04-011-2/+3
|\ | | | | | | 39f000b3 miner: fix possible exit crash due to race in stop (moneromooo-monero)
| * miner: fix possible exit crash due to race in stopmoneromooo-monero2019-03-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a thread asks to stop the miner, m_stop will be set, and that thread will wait to join. If the main thread is exiting at that time, it will ask the miner to stop, but the miner will claim it's not mining and early out since m_stop is set. This will cause the database and other things to get shutdown. If the miner happens to find a block at that time, it will try to call core, and crash. Instead, lock and check whether any threads are currently in m_threads, since they'll only be cleared once the threads are joined. Moreover, since we lock, the second thread will have to wait for the first one to have finished. Calling join twice on a thread seems fine as per pthread_join(3).
* | Merge pull request #5185Riccardo Spagni2019-03-171-3/+6
|\ \ | | | | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * | daemon: new mining_status commandmoneromooo-monero2019-03-091-3/+6
| | |
* | | Update 2019 copyrightbinaryFate2019-03-051-1/+1
| |/ |/|
* | check load_t_from_json return valuesmoneromooo-monero2019-03-041-1/+2
| |
* | miner: it can now autodetect the optimal number of threadsmoneromooo-monero2019-02-231-4/+79
|/
* Merge pull request #4869Riccardo Spagni2018-12-041-1/+1
|\ | | | | | | 60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
| * Avoid unnecessary temp block and copy ctormoneromooo-monero2018-11-191-1/+1
| | | | | | | | | | block already has a default ctor, and the extra object churn due to its innards (vectors, etc) is pointless.
* | Removed a lot of unnecessary includesMartijn Otto2018-11-151-15/+16
|/
* miner: fix build with boost 1.69moneromooo-monero2018-10-221-1/+1
|
* miner: really reset flags/precision on std::coutmoneromooo-monero2018-10-081-1/+1
|
* Merge pull request #4459Riccardo Spagni2018-09-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
* Merge pull request #4030luigi11112018-07-191-1/+1
|\ | | | | | | 0c41488 miner: show id and height when a block is found (stoffu)
| * miner: show id and height when a block is foundstoffu2018-06-201-1/+1
| |
* | handle optional miner params bettercryptochangements342018-05-061-0/+5
|/
* Fix typos in various filesDimitris Apostolou2018-03-151-1/+1
|
* Merge pull request #3277Riccardo Spagni2018-03-051-2/+2
|\ | | | | | | | | | | | | | | | | 0e7ad2e2 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' (stoffu) af773211 Stagenet (stoffu) cc9a0bee command_line: allow args to depend on more than one args (stoffu) 55f8d917 command_line::get_arg: remove 'required' for dependent args as they're always optional (stoffu) 450306a0 command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 (stoffu) 9f9e095a Use `genesis_tx` parameter in `generate_genesis_block`. #3261 (Jean Pierre Dudey)
| * Stagenetstoffu2018-03-051-2/+2
| |
* | Correct spelling mistakes.Edward Betts2018-03-051-1/+1
|/
* Merge pull request #3255Riccardo Spagni2018-02-201-11/+5
|\ | | | | | | 3962bcb2 Closes #2886: really ignore battery checking (Timothy D. Prime)
| * Closes #2886: really ignore battery checkingTimothy D. Prime2018-02-121-11/+5
| | | | | | | | Move option test first.
* | miner: restore std::cout precision after modificationmoneromooo-monero2018-02-021-1/+2
| | | | | | | | Coverity 136462
* | Update 2018 copyrightxmr-eric2018-01-261-1/+1
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-161-1/+4
|
* Implement missing miner functions on FreeBSDVasil Dimov2017-11-111-1/+105
| | | | | | | | | | | | | cryptonote::miner::get_system_times(): Fetch the system's total and idle time using sysctl kern.cp_time. cryptonote::miner::get_process_time(): Use the same implementation as Linux and OSX, the times(3) function conforms to POSIX.1 and is available on FreeBSD. cryptonote::miner::on_battery_power(): Try to fetch the battery status using sysctl hw.acpi.acline. If that fails (if ACPI is not enabled on the system), then try querying /dev/apm.
* Remove unused variables and fix typos in commentsVasil Dimov2017-11-111-4/+2
|
* Merge pull request #2597Riccardo Spagni2017-10-151-2/+1
|\ | | | | | | c4136134 miner: always update block template when starting (moneromooo-monero)
| * miner: always update block template when startingmoneromooo-monero2017-10-071-2/+1
| | | | | | | | | | This fixes using the previous address when starting mining, then stopping and restarting with a different address
* | Subaddresseskenshi842017-10-071-1/+3
|/
* Fix AC power supply detection on LinuxGuillaume LE VAILLANT2017-09-081-13/+0
| | | | | The /sys/class/power_supply/*/present file usually does not exist for AC power supplies.
* Merge pull request #2283Riccardo Spagni2017-08-151-1/+1
|\ | | | | | | d1f204d6 miner: set thread name before logging (moneromooo-monero)
| * miner: set thread name before loggingmoneromooo-monero2017-08-121-1/+1
| |
* | Merge pull request #2232Riccardo Spagni2017-08-151-1/+1
|\ \ | |/ |/| | | 87b5ede9 miner: fix ignoring battery from command line (moneromooo-monero)
| * miner: fix ignoring battery from command linemoneromooo-monero2017-07-311-1/+1
| |