|
Electroneum
|
#include <miner.h>
Public Member Functions | |
| miner (i_miner_handler *phandler) | |
| ~miner () | |
| bool | init (const boost::program_options::variables_map &vm, network_type nettype, bool fallback_to_pow=false) |
| bool | set_block_template (const block &bl, const difficulty_type &diffic, uint64_t height, uint64_t block_reward) |
| bool | on_block_chain_update () |
| bool | start (const account_public_address &adr, size_t threads_count, bool do_background=false, bool ignore_battery=false) |
| uint64_t | get_speed () const |
| uint32_t | get_threads_count () const |
| void | send_stop_signal () |
| bool | stop () |
| bool | is_mining () const |
| const account_public_address & | get_mining_address () const |
| bool | on_idle () |
| void | on_synchronized () |
| void | pause () |
| void | resume () |
| void | do_print_hashrate (bool do_hr) |
| bool | get_is_background_mining_enabled () const |
| bool | get_ignore_battery () const |
| uint64_t | get_min_idle_seconds () const |
| bool | set_min_idle_seconds (uint64_t min_idle_seconds) |
| uint8_t | get_idle_threshold () const |
| bool | set_idle_threshold (uint8_t idle_threshold) |
| uint8_t | get_mining_target () const |
| bool | set_mining_target (uint8_t mining_target) |
| uint64_t | get_block_reward () const |
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 104 of file miner.cpp.
| cryptonote::miner::~miner | ( | ) |
| void cryptonote::miner::do_print_hashrate | ( | bool | do_hr | ) |
|
static |
Definition at line 478 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 292 of file miner.cpp.


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


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

| void cryptonote::miner::on_synchronized | ( | ) |
Definition at line 495 of file miner.cpp.

| void cryptonote::miner::pause | ( | ) |
Definition at line 503 of file miner.cpp.

| void cryptonote::miner::resume | ( | ) |
Definition at line 512 of file miner.cpp.

| 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 137 of file miner.cpp.

| bool cryptonote::miner::set_idle_threshold | ( | uint8_t | idle_threshold | ) |
Definition at line 657 of file miner.cpp.

| bool cryptonote::miner::set_min_idle_seconds | ( | uint64_t | min_idle_seconds | ) |
Definition at line 644 of file miner.cpp.

| bool cryptonote::miner::set_mining_target | ( | uint8_t | mining_target | ) |
Definition at line 670 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 ) |
Definition at line 373 of file miner.cpp.


| bool cryptonote::miner::stop | ( | ) |
Definition at line 444 of file miner.cpp.


|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |