|
Monero
|
#include <miner.h>

Classes | |
| struct | miner_config |
Static Public Member Functions | |
| static void | init_options (boost::program_options::options_description &desc) |
| static bool | find_nonce_for_given_block (const get_block_hash_t &gbh, block &bl, const difficulty_type &diffic, uint64_t height, const crypto::hash *seed_hash=NULL) |
Static Public Attributes | |
| static constexpr uint8_t | BACKGROUND_MINING_DEFAULT_IDLE_THRESHOLD_PERCENTAGE = 90 |
| static constexpr uint8_t | BACKGROUND_MINING_MIN_IDLE_THRESHOLD_PERCENTAGE = 0 |
| static constexpr uint8_t | BACKGROUND_MINING_MAX_IDLE_THRESHOLD_PERCENTAGE = 99 |
| static constexpr uint16_t | BACKGROUND_MINING_DEFAULT_MIN_IDLE_INTERVAL_IN_SECONDS = 10 |
| static constexpr uint16_t | BACKGROUND_MINING_MIN_MIN_IDLE_INTERVAL_IN_SECONDS = 10 |
| static constexpr uint16_t | BACKGROUND_MINING_MAX_MIN_IDLE_INTERVAL_IN_SECONDS = 3600 |
| static constexpr uint8_t | BACKGROUND_MINING_DEFAULT_MINING_TARGET_PERCENTAGE = 40 |
| static constexpr uint8_t | BACKGROUND_MINING_MIN_MINING_TARGET_PERCENTAGE = 1 |
| static constexpr uint8_t | BACKGROUND_MINING_MAX_MINING_TARGET_PERCENTAGE = 100 |
| static constexpr uint8_t | BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS = 10 |
| static constexpr uint64_t | BACKGROUND_MINING_DEFAULT_MINER_EXTRA_SLEEP_MILLIS = 400 |
Private Member Functions | |
| bool | worker_thread () |
| bool | request_block_template () |
| void | merge_hr () |
| void | update_autodetection () |
| bool | set_is_background_mining_enabled (bool is_background_mining_enabled) |
| void | set_ignore_battery (bool ignore_battery) |
| bool | background_worker_thread () |
Static Private Member Functions | |
| static bool | get_system_times (uint64_t &total_time, uint64_t &idle_time) |
| static bool | get_process_time (uint64_t &total_time) |
| static uint8_t | get_percent_of_total (uint64_t some_time, uint64_t total_time) |
| static boost::logic::tribool | on_battery_power () |
| cryptonote::miner::miner | ( | i_miner_handler * | phandler, |
| const get_block_hash_t & | gbh ) |
| cryptonote::miner::~miner | ( | ) |
|
private |
| void cryptonote::miner::do_print_hashrate | ( | bool | do_hr | ) |
|
static |
|
inline |
| uint8_t cryptonote::miner::get_idle_threshold | ( | ) | const |
| bool cryptonote::miner::get_ignore_battery | ( | ) | const |
| bool cryptonote::miner::get_is_background_mining_enabled | ( | ) | const |
| uint64_t cryptonote::miner::get_min_idle_seconds | ( | ) | const |
| const account_public_address & cryptonote::miner::get_mining_address | ( | ) | const |
| uint8_t cryptonote::miner::get_mining_target | ( | ) | const |
|
staticprivate |
|
staticprivate |
| uint64_t cryptonote::miner::get_speed | ( | ) | const |
|
staticprivate |
| uint32_t cryptonote::miner::get_threads_count | ( | ) | const |
| bool cryptonote::miner::init | ( | const boost::program_options::variables_map & | vm, |
| network_type | nettype ) |
|
static |
| bool cryptonote::miner::is_mining | ( | ) | const |
|
private |
|
staticprivate |
| bool cryptonote::miner::on_block_chain_update | ( | ) |
| bool cryptonote::miner::on_idle | ( | ) |
| void cryptonote::miner::on_synchronized | ( | ) |
| void cryptonote::miner::pause | ( | ) |
|
private |
| void cryptonote::miner::resume | ( | ) |
| void cryptonote::miner::send_stop_signal | ( | ) |
| bool cryptonote::miner::set_block_template | ( | const block & | bl, |
| const difficulty_type & | diffic, | ||
| uint64_t | height, | ||
| uint64_t | block_reward ) |
| bool cryptonote::miner::set_idle_threshold | ( | uint8_t | idle_threshold | ) |
|
private |
|
private |
This has differing behaviour depending on if mining has been started/etc. Note: add documentation
| bool cryptonote::miner::set_min_idle_seconds | ( | uint64_t | min_idle_seconds | ) |
| bool cryptonote::miner::set_mining_target | ( | uint8_t | mining_target | ) |
| bool cryptonote::miner::start | ( | const account_public_address & | adr, |
| size_t | threads_count, | ||
| bool | do_background = false, | ||
| bool | ignore_battery = false ) |
| bool cryptonote::miner::stop | ( | ) |
|
private |
|
private |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |