Electroneum
Classes | Namespaces | Macros | Functions | Variables
wallet_rpc_server.cpp File Reference
#include <boost/format.hpp>
#include <boost/asio/ip/address.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <cstdint>
#include "include_base_utils.h"
#include "wallet_rpc_server.h"
#include "wallet/wallet_args.h"
#include "common/command_line.h"
#include "common/i18n.h"
#include "cryptonote_config.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "cryptonote_basic/account.h"
#include "multisig/multisig.h"
#include "wallet_rpc_server_commands_defs.h"
#include "misc_language.h"
#include "string_coding.h"
#include "string_tools.h"
#include "crypto/hash.h"
#include "mnemonics/electrum-words.h"
#include "rpc/rpc_args.h"
#include "rpc/core_rpc_server_commands_defs.h"
#include "daemonizer/daemonizer.h"
Include dependency graph for wallet_rpc_server.cpp:

Classes

class  t_daemon
 
class  t_executor
 

Namespaces

 anonymous_namespace{wallet_rpc_server.cpp}
 
 tools
 Various Tools.
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "wallet.rpc"
 
#define DEFAULT_AUTO_REFRESH_PERIOD   20
 
#define MKDIR(path, mode)   mkdir(path, mode)
 

Functions

boost::optional< tools::password_containeranonymous_namespace{wallet_rpc_server.cpp}::password_prompter (const char *prompt, bool verify)
 
void anonymous_namespace{wallet_rpc_server.cpp}::set_confirmations (tools::wallet_rpc::transfer_entry &entry, uint64_t blockchain_height, uint64_t block_reward)
 
static std::string tools::ptx_to_string (const tools::wallet2::pending_tx &ptx)
 
template<typename T >
static bool tools::is_error_value (const T &val)
 
static bool tools::is_error_value (const std::string &s)
 
template<typename T , typename V >
static bool tools::fill (T &where, V s)
 
template<typename T , typename V >
static bool tools::fill (std::list< T > &where, V s)
 
static uint64_t tools::total_amount (const tools::wallet2::pending_tx &ptx)
 
int main (int argc, char **argv)
 

Variables

const command_line::arg_descriptor< std::string, trueanonymous_namespace{wallet_rpc_server.cpp}::arg_rpc_bind_port = {"rpc-bind-port", "Sets bind port for server"}
 
const command_line::arg_descriptor< boolanonymous_namespace{wallet_rpc_server.cpp}::arg_disable_rpc_login = {"disable-rpc-login", "Disable HTTP authentication for RPC connections served by this process"}
 
const command_line::arg_descriptor< boolanonymous_namespace{wallet_rpc_server.cpp}::arg_restricted = {"restricted-rpc", "Restricts to view-only commands", false}
 
const command_line::arg_descriptor< std::string > anonymous_namespace{wallet_rpc_server.cpp}::arg_wallet_dir = {"wallet-dir", "Directory for newly created wallets"}
 
const command_line::arg_descriptor< boolanonymous_namespace{wallet_rpc_server.cpp}::arg_prompt_for_password = {"prompt-for-password", "Prompts for password when not provided", false}
 
const command_line::arg_descriptor< std::string > anonymous_namespace{wallet_rpc_server.cpp}::arg_data_dir = {"data-dir", "Blockchain database path."}
 
const command_line::arg_descriptor< boolanonymous_namespace{wallet_rpc_server.cpp}::arg_testnet = {"testnet", "For testnet. Daemon must also be launched with --testnet flag"}
 
constexpr const char anonymous_namespace{wallet_rpc_server.cpp}::default_rpc_username [] = "electroneum"
 

Macro Definition Documentation

◆ DEFAULT_AUTO_REFRESH_PERIOD

#define DEFAULT_AUTO_REFRESH_PERIOD   20

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "wallet.rpc"

◆ MKDIR

#define MKDIR (   path,
  mode 
)    mkdir(path, mode)

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)