Monero
Classes | Functions
anonymous_namespace{wallet2.cpp} Namespace Reference

Classes

struct  options
 

Functions

std::string get_default_ringdb_path ()
 
void do_prepare_file_names (const std::string &file_path, std::string &keys_file, std::string &wallet_file)
 
uint64_t calculate_fee (uint64_t fee_per_kb, size_t bytes, uint64_t fee_multiplier)
 
uint64_t calculate_fee_from_weight (uint64_t base_fee, uint64_t weight, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
std::string get_weight_string (size_t weight)
 
std::string get_weight_string (const cryptonote::transaction &tx, size_t blob_size)
 
std::unique_ptr< tools::wallet2make_basic (const boost::program_options::variables_map &vm, bool unattended, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter)
 
boost::optional< tools::password_containerget_password (const boost::program_options::variables_map &vm, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter, const bool verify)
 
std::unique_ptr< tools::wallet2generate_from_json (const std::string &json_file, const boost::program_options::variables_map &vm, bool unattended, const options &opts, const std::function< boost::optional< tools::password_container >(const char *, bool)> &password_prompter)
 
static void throw_on_rpc_response_error (const boost::optional< std::string > &status, const char *method)
 
std::string strjoin (const std::vector< size_t > &V, const char *sep)
 
static void emplace_or_replace (std::unordered_multimap< crypto::hash, tools::wallet2::pool_payment_details > &container, const crypto::hash &key, const tools::wallet2::pool_payment_details &pd)
 
void drop_from_short_history (std::list< crypto::hash > &short_chain_history, size_t N)
 
size_t estimate_rct_tx_size (int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
size_t estimate_tx_size (bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
uint64_t estimate_tx_weight (bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof)
 
uint8_t get_bulletproof_fork ()
 
uint64_t estimate_fee (bool use_per_byte_fee, bool use_rct, int n_inputs, int mixin, int n_outputs, size_t extra_size, bool bulletproof, uint64_t base_fee, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
uint64_t calculate_fee (bool use_per_byte_fee, const cryptonote::transaction &tx, size_t blob_size, uint64_t base_fee, uint64_t fee_multiplier, uint64_t fee_quantization_mask)
 
crypto::hash8 get_short_payment_id (const tools::wallet2::pending_tx &ptx, hw::device &hwdev)
 
tools::wallet2::tx_construction_data get_construction_data_with_decrypted_short_payment_id (const tools::wallet2::pending_tx &ptx, hw::device &hwdev)
 
uint32_t get_subaddress_clamped_sum (uint32_t idx, uint32_t extra)
 

Function Documentation

◆ calculate_fee() [1/2]

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee ( uint64_t  fee_per_kb,
size_t  bytes,
uint64_t  fee_multiplier 
)

◆ calculate_fee() [2/2]

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee ( bool  use_per_byte_fee,
const cryptonote::transaction tx,
size_t  blob_size,
uint64_t  base_fee,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ calculate_fee_from_weight()

uint64_t anonymous_namespace{wallet2.cpp}::calculate_fee_from_weight ( uint64_t  base_fee,
uint64_t  weight,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ do_prepare_file_names()

void anonymous_namespace{wallet2.cpp}::do_prepare_file_names ( const std::string &  file_path,
std::string &  keys_file,
std::string &  wallet_file 
)

◆ drop_from_short_history()

void anonymous_namespace{wallet2.cpp}::drop_from_short_history ( std::list< crypto::hash > &  short_chain_history,
size_t  N 
)

◆ emplace_or_replace()

static void anonymous_namespace{wallet2.cpp}::emplace_or_replace ( std::unordered_multimap< crypto::hash, tools::wallet2::pool_payment_details > &  container,
const crypto::hash key,
const tools::wallet2::pool_payment_details pd 
)
static

◆ estimate_fee()

uint64_t anonymous_namespace{wallet2.cpp}::estimate_fee ( bool  use_per_byte_fee,
bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof,
uint64_t  base_fee,
uint64_t  fee_multiplier,
uint64_t  fee_quantization_mask 
)

◆ estimate_rct_tx_size()

size_t anonymous_namespace{wallet2.cpp}::estimate_rct_tx_size ( int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ estimate_tx_size()

size_t anonymous_namespace{wallet2.cpp}::estimate_tx_size ( bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ estimate_tx_weight()

uint64_t anonymous_namespace{wallet2.cpp}::estimate_tx_weight ( bool  use_rct,
int  n_inputs,
int  mixin,
int  n_outputs,
size_t  extra_size,
bool  bulletproof 
)

◆ generate_from_json()

std::unique_ptr<tools::wallet2> anonymous_namespace{wallet2.cpp}::generate_from_json ( const std::string &  json_file,
const boost::program_options::variables_map &  vm,
bool  unattended,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter 
)

◆ get_bulletproof_fork()

uint8_t anonymous_namespace{wallet2.cpp}::get_bulletproof_fork ( )

◆ get_construction_data_with_decrypted_short_payment_id()

tools::wallet2::tx_construction_data anonymous_namespace{wallet2.cpp}::get_construction_data_with_decrypted_short_payment_id ( const tools::wallet2::pending_tx ptx,
hw::device hwdev 
)

◆ get_default_ringdb_path()

std::string anonymous_namespace{wallet2.cpp}::get_default_ringdb_path ( )

◆ get_password()

boost::optional<tools::password_container> anonymous_namespace{wallet2.cpp}::get_password ( const boost::program_options::variables_map &  vm,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter,
const bool  verify 
)

◆ get_short_payment_id()

crypto::hash8 anonymous_namespace{wallet2.cpp}::get_short_payment_id ( const tools::wallet2::pending_tx ptx,
hw::device hwdev 
)

◆ get_subaddress_clamped_sum()

uint32_t anonymous_namespace{wallet2.cpp}::get_subaddress_clamped_sum ( uint32_t  idx,
uint32_t  extra 
)

◆ get_weight_string() [1/2]

std::string anonymous_namespace{wallet2.cpp}::get_weight_string ( size_t  weight)

◆ get_weight_string() [2/2]

std::string anonymous_namespace{wallet2.cpp}::get_weight_string ( const cryptonote::transaction tx,
size_t  blob_size 
)

◆ make_basic()

std::unique_ptr<tools::wallet2> anonymous_namespace{wallet2.cpp}::make_basic ( const boost::program_options::variables_map &  vm,
bool  unattended,
const options opts,
const std::function< boost::optional< tools::password_container >(const char *, bool)> &  password_prompter 
)

◆ strjoin()

std::string anonymous_namespace{wallet2.cpp}::strjoin ( const std::vector< size_t > &  V,
const char *  sep 
)

◆ throw_on_rpc_response_error()

static void anonymous_namespace{wallet2.cpp}::throw_on_rpc_response_error ( const boost::optional< std::string > &  status,
const char *  method 
)
static