|
Electroneum
|
#include <daemon.h>

Public Types | |
| typedef cryptonote::t_cryptonote_protocol_handler< cryptonote::core > | t_protocol_raw |
| typedef nodetool::node_server< t_protocol_raw > | t_node_server |
Public Member Functions | |
| mock_daemon (cryptonote::core *core, boost::program_options::variables_map const &vm) | |
| virtual | ~mock_daemon () |
| mock_daemon * | set_start_p2p (bool fl) |
| mock_daemon * | set_start_zmq (bool fl) |
| void | init () |
| void | deinit () |
| void | run () |
| bool | run_main () |
| void | stop () |
| void | stop_p2p () |
| void | stop_rpc () |
| void | init_and_run () |
| void | stop_and_deinit () |
| void | try_init_and_run (boost::optional< unsigned > initial_port=boost::none) |
| void | mine_blocks (size_t num_blocks, const std::string &miner_address) |
| void | start_mining (const std::string &miner_address, uint64_t threads_count=1, bool do_background_mining=false, bool ignore_battery=true) |
| void | stop_mining () |
| uint64_t | get_height () |
| void | load_params (boost::program_options::variables_map const &vm) |
| std::string | zmq_addr () const |
| std::string | rpc_addr () const |
| std::string | p2p_addr () const |
| cryptonote::network_type | nettype () const |
| cryptonote::core * | core () const |
Static Public Member Functions | |
| static void | init_options (boost::program_options::options_description &option_spec) |
| static void | default_options (boost::program_options::variables_map &vm) |
| static void | set_ports (boost::program_options::variables_map &vm, unsigned initial_port) |
Public Attributes | |
| cryptonote::core * | m_core |
| t_protocol_raw | m_protocol |
| mock_rpc_daemon | m_rpc_server |
| t_node_server | m_server |
| cryptonote::network_type | m_network_type |
| epee::net_utils::http::http_simple_client | m_http_client |
| bool | m_start_p2p |
| bool | m_start_zmq |
| boost::program_options::variables_map | m_vm |
| std::string | m_p2p_bind_port |
| std::string | m_rpc_bind_port |
| std::string | m_zmq_bind_port |
| std::atomic< bool > | m_stopped |
| std::atomic< bool > | m_terminated |
| std::atomic< bool > | m_deinitalized |
| boost::thread | m_run_thread |
Static Public Attributes | |
| static constexpr const std::chrono::seconds | rpc_timeout = std::chrono::seconds(60) |
|
inline |
Definition at line 101 of file daemon.h.

|
virtual |
Definition at line 102 of file daemon.cpp.

|
inline |
|
static |
Definition at line 53 of file daemon.cpp.

| void mock_daemon::deinit | ( | ) |
Definition at line 143 of file daemon.cpp.
| uint64_t mock_daemon::get_height | ( | ) |
Definition at line 371 of file daemon.cpp.
| void mock_daemon::init | ( | ) |
Definition at line 125 of file daemon.cpp.

| void mock_daemon::init_and_run | ( | ) |
|
static |
Definition at line 43 of file daemon.cpp.

| void mock_daemon::load_params | ( | boost::program_options::variables_map const & | vm | ) |
Definition at line 94 of file daemon.cpp.

| void mock_daemon::mine_blocks | ( | size_t | num_blocks, |
| const std::string & | miner_address | ||
| ) |
Definition at line 312 of file daemon.cpp.

|
inline |
| void mock_daemon::run | ( | ) |
| bool mock_daemon::run_main | ( | ) |
Definition at line 227 of file daemon.cpp.


|
static |
Definition at line 85 of file daemon.cpp.

|
inline |
|
inline |
| void mock_daemon::start_mining | ( | const std::string & | miner_address, |
| uint64_t | threads_count = 1, |
||
| bool | do_background_mining = false, |
||
| bool | ignore_battery = true |
||
| ) |
Definition at line 346 of file daemon.cpp.

| void mock_daemon::stop | ( | ) |
Definition at line 292 of file daemon.cpp.
| void mock_daemon::stop_and_deinit | ( | ) |
| void mock_daemon::stop_mining | ( | ) |
Definition at line 361 of file daemon.cpp.

| void mock_daemon::stop_p2p | ( | ) |
Definition at line 306 of file daemon.cpp.
| void mock_daemon::stop_rpc | ( | ) |
Definition at line 300 of file daemon.cpp.
| void mock_daemon::try_init_and_run | ( | boost::optional< unsigned > | initial_port = boost::none | ) |
Definition at line 194 of file daemon.cpp.
| cryptonote::core* mock_daemon::m_core |
| epee::net_utils::http::http_simple_client mock_daemon::m_http_client |
| cryptonote::network_type mock_daemon::m_network_type |
| t_protocol_raw mock_daemon::m_protocol |
| mock_rpc_daemon mock_daemon::m_rpc_server |
| t_node_server mock_daemon::m_server |
|
static |