41 #include <boost/optional/optional_fwd.hpp> 46 #include "net/net_fwd.h" 49 #undef MONERO_DEFAULT_LOG_CATEGORY 50 #define MONERO_DEFAULT_LOG_CATEGORY "daemon" 64 ,
const boost::optional<tools::login>& user
65 ,
const epee::net_utils::ssl_options_t& ssl_options
72 bool print_peer_list(
bool white =
true,
bool gray =
true,
size_t limit = 0,
bool pruned_only =
false,
bool publicrpc_only =
false);
126 bool set_limit(int64_t limit_down, int64_t limit_up);
128 bool out_peers(
bool set, uint32_t limit);
130 bool in_peers(
bool set, uint32_t limit);
136 bool ban(
const std::string &address, time_t seconds);
138 bool unban(
const std::string &address);
140 bool banned(
const std::string &address);
144 bool output_histogram(
const std::vector<uint64_t> &amounts, uint64_t min_count, uint64_t max_count);
148 bool alt_chain_info(
const std::string &tip,
size_t above, uint64_t last_blocks);
152 bool update(
const std::string &command);
154 bool relay_tx(
const std::string &txid);
169 const std::string &address,
170 const std::string &username,
171 const std::string &password);
175 bool flush_cache(
bool bad_txs,
bool invalid_blocks);
bool output_histogram(const std::vector< uint64_t > &amounts, uint64_t min_count, uint64_t max_count)
Definition: rpc_command_executor.cpp:1847
bool save_blockchain()
Definition: rpc_command_executor.cpp:264
bool m_is_rpc
Definition: rpc_command_executor.h:58
bool update(const std::string &command)
Definition: rpc_command_executor.cpp:2165
bool rpc_payments()
Definition: rpc_command_executor.cpp:2466
bool relay_tx(const std::string &txid)
Definition: rpc_command_executor.cpp:2212
~t_rpc_command_executor()
Definition: rpc_command_executor.cpp:181
bool print_connections()
Definition: rpc_command_executor.cpp:620
bool set_log_categories(const std::string &categories)
Definition: rpc_command_executor.cpp:849
bool start_mining(cryptonote::account_public_address address, uint64_t num_threads, cryptonote::network_type nettype, bool do_background_mining=false, bool ignore_battery=false)
Definition: rpc_command_executor.cpp:1351
bool check_blockchain_pruning()
Definition: rpc_command_executor.cpp:2365
bool set_log_level(int8_t level)
Definition: rpc_command_executor.cpp:821
Definition: command_parser_executor.cpp:36
bool banned(const std::string &address)
Definition: rpc_command_executor.cpp:1784
bool mining_status()
Definition: rpc_command_executor.cpp:544
bool alt_chain_info(const std::string &tip, size_t above, uint64_t last_blocks)
Definition: rpc_command_executor.cpp:1921
bool set_limit(int64_t limit_down, int64_t limit_up)
Definition: rpc_command_executor.cpp:1496
bool version()
Definition: rpc_command_executor.cpp:2507
bool print_blockchain_dynamic_stats(uint64_t nblocks)
Definition: rpc_command_executor.cpp:2044
bool print_net_stats()
Definition: rpc_command_executor.cpp:686
bool print_peer_list(bool white=true, bool gray=true, size_t limit=0, bool pruned_only=false, bool publicrpc_only=false)
Definition: rpc_command_executor.cpp:189
bool print_transaction(crypto::hash transaction_hash, bool include_metadata, bool include_hex, bool include_json)
Definition: rpc_command_executor.cpp:972
bool print_blockchain_info(int64_t start_block_index, uint64_t end_block_index)
Definition: rpc_command_executor.cpp:748
bool hard_fork_info(uint8_t version)
Definition: rpc_command_executor.cpp:1649
bool set_bootstrap_daemon(const std::string &address, const std::string &username, const std::string &password)
Definition: rpc_command_executor.cpp:2401
bool print_coinbase_tx_sum(uint64_t height, uint64_t count)
Definition: rpc_command_executor.cpp:1886
bool print_height()
Definition: rpc_command_executor.cpp:877
bool stop_mining()
Definition: rpc_command_executor.cpp:1380
mdb_size_t count(MDB_cursor *cur)
Definition: value_stream.cpp:39
bool print_bans()
Definition: rpc_command_executor.cpp:1682
bool flush_cache(bool bad_txs, bool invalid_blocks)
Definition: rpc_command_executor.cpp:2437
bool get_limit_up()
Definition: rpc_command_executor.cpp:1527
bool print_transaction_pool_long()
Definition: rpc_command_executor.cpp:1129
bool get_limit()
Definition: rpc_command_executor.cpp:1468
bool pop_blocks(uint64_t num_blocks)
Definition: rpc_command_executor.cpp:2309
bool stop_daemon()
Definition: rpc_command_executor.cpp:1406
bool sync_info()
Definition: rpc_command_executor.cpp:2241
bool get_limit_down()
Definition: rpc_command_executor.cpp:1554
bool prune_blockchain()
Definition: rpc_command_executor.cpp:2336
bool print_transaction_pool_short()
Definition: rpc_command_executor.cpp:1215
bool print_block_by_hash(crypto::hash block_hash, bool include_hex)
Definition: rpc_command_executor.cpp:904
Definition: rpc_command_executor.h:54
bool print_peer_list_stats()
Definition: rpc_command_executor.cpp:233
network_type
Definition: cryptonote_config.h:267
Definition: cryptonote_basic.h:500
cryptonote::core_rpc_server * m_rpc_server
Definition: rpc_command_executor.h:57
POD_CLASS key_image
Definition: crypto.h:87
bool print_transaction_pool_stats()
Definition: rpc_command_executor.cpp:1266
bool out_peers(bool set, uint32_t limit)
Definition: rpc_command_executor.cpp:1581
bool print_status()
Definition: rpc_command_executor.cpp:1448
bool show_difficulty()
Definition: rpc_command_executor.cpp:346
bool unban(const std::string &address)
Definition: rpc_command_executor.cpp:1751
bool is_key_image_spent(const crypto::key_image &ki)
Definition: rpc_command_executor.cpp:1093
Definition: core_rpc_server.h:59
bool hide_hash_rate()
Definition: rpc_command_executor.cpp:318
bool flush_txpool(const std::string &txid)
Definition: rpc_command_executor.cpp:1817
t_rpc_command_executor(uint32_t ip, uint16_t port, const boost::optional< tools::login > &user, const epee::net_utils::ssl_options_t &ssl_options, bool is_rpc=true, cryptonote::core_rpc_server *rpc_server=NULL)
Definition: rpc_command_executor.cpp:153
POD_CLASS hash
Definition: hash.h:48
bool show_hash_rate()
Definition: rpc_command_executor.cpp:291
bool ban(const std::string &address, time_t seconds)
Definition: rpc_command_executor.cpp:1718
bool print_block_by_height(uint64_t height, bool include_hex)
Definition: rpc_command_executor.cpp:938
bool in_peers(bool set, uint32_t limit)
Definition: rpc_command_executor.cpp:1615
tools::t_rpc_client * m_rpc_client
Definition: rpc_command_executor.h:56
bool show_status()
Definition: rpc_command_executor.cpp:441