|
Electroneum
|
#include <miner.h>

Static Public Member Functions | |
| static void | init_options (boost::program_options::options_description &desc) |
| static bool | find_nonce_for_given_block (block &bl, const difficulty_type &diffic, uint64_t height) |
Static Public Attributes | |
| static constexpr uint8_t | BACKGROUND_MINING_DEFAULT_IDLE_THRESHOLD_PERCENTAGE = 90 |
| static constexpr uint8_t | BACKGROUND_MINING_MIN_IDLE_THRESHOLD_PERCENTAGE = 50 |
| 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 = 5 |
| static constexpr uint8_t | BACKGROUND_MINING_MAX_MINING_TARGET_PERCENTAGE = 50 |
| static constexpr uint8_t | BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS = 10 |
| static constexpr uint64_t | BACKGROUND_MINING_DEFAULT_MINER_EXTRA_SLEEP_MILLIS = 400 |
| static constexpr uint64_t | BACKGROUND_MINING_MIN_MINER_EXTRA_SLEEP_MILLIS = 5 |
| cryptonote::miner::miner | ( | i_miner_handler * | phandler | ) |
Definition at line 103 of file miner.cpp.
| cryptonote::miner::~miner | ( | ) |
| void cryptonote::miner::do_print_hashrate | ( | bool | do_hr | ) |
|
static |
Definition at line 471 of file miner.cpp.


|
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 |
| uint64_t cryptonote::miner::get_speed | ( | ) | const |
| uint32_t cryptonote::miner::get_threads_count | ( | ) | const |
| bool cryptonote::miner::init | ( | const boost::program_options::variables_map & | vm, |
| network_type | nettype, | ||
| bool | fallback_to_pow = false |
||
| ) |
Definition at line 291 of file miner.cpp.


|
static |
Definition at line 279 of file miner.cpp.


| bool cryptonote::miner::is_mining | ( | ) | const |
| bool cryptonote::miner::on_block_chain_update | ( | ) |
| bool cryptonote::miner::on_idle | ( | ) |
| void cryptonote::miner::on_synchronized | ( | ) |
Definition at line 488 of file miner.cpp.


| void cryptonote::miner::pause | ( | ) |
| 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 | ||
| ) |
Definition at line 650 of file miner.cpp.

Definition at line 637 of file miner.cpp.

Definition at line 663 of file miner.cpp.

| 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 | ( | ) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |