Electroneum
wallet_accessor_test Class Reference

#include <wallet_tools.h>

Static Public Member Functions

static void set_account (tools::wallet2 *wallet, cryptonote::account_base &account)
 
static tools::wallet2::transfer_containerget_transfers (tools::wallet2 *wallet)
 
static subaddresses_tget_subaddresses (tools::wallet2 *wallet)
 
static void process_parsed_blocks (tools::wallet2 *wallet, uint64_t start_height, const std::vector< cryptonote::block_complete_entry > &blocks, const std::vector< tools::wallet2::parsed_block > &parsed_blocks, uint64_t &blocks_added)
 

Detailed Description

Definition at line 51 of file wallet_tools.h.

Member Function Documentation

◆ get_subaddresses()

static subaddresses_t& wallet_accessor_test::get_subaddresses ( tools::wallet2 wallet)
inlinestatic

Definition at line 56 of file wallet_tools.h.

56 { return wallet->m_subaddresses; }
Here is the caller graph for this function:

◆ get_transfers()

static tools::wallet2::transfer_container& wallet_accessor_test::get_transfers ( tools::wallet2 wallet)
inlinestatic

Definition at line 55 of file wallet_tools.h.

55 { return wallet->m_transfers; }
Here is the caller graph for this function:

◆ process_parsed_blocks()

void wallet_accessor_test::process_parsed_blocks ( tools::wallet2 wallet,
uint64_t  start_height,
const std::vector< cryptonote::block_complete_entry > &  blocks,
const std::vector< tools::wallet2::parsed_block > &  parsed_blocks,
uint64_t blocks_added 
)
static

Definition at line 35 of file wallet_tools.cpp.

36 {
37  wallet->process_parsed_blocks(start_height, blocks, parsed_blocks, blocks_added);
38 }
Here is the caller graph for this function:

◆ set_account()

void wallet_accessor_test::set_account ( tools::wallet2 wallet,
cryptonote::account_base account 
)
static

Definition at line 16 of file wallet_tools.cpp.

17 {
18  wallet->clear();
19  wallet->m_account = account;
20 
21  wallet->m_key_device_type = account.get_device().get_type();
22  wallet->m_account_public_address = account.get_keys().m_account_address;
23  wallet->m_watch_only = false;
24  wallet->m_multisig = false;
25  wallet->m_multisig_threshold = 0;
26  wallet->m_multisig_signers.clear();
27  wallet->m_device_name = account.get_device().get_name();
28 
29  wallet->m_subaddress_lookahead_major = 5;
30  wallet->m_subaddress_lookahead_minor = 20;
31 
32  wallet->setup_new_blockchain(); // generates also subadress register
33 }
virtual device_type get_type() const =0
const account_keys & get_keys() const
Definition: account.cpp:264
hw::device & get_device() const
Definition: account.h:91
account_public_address m_account_address
Definition: account.h:43
virtual const std::string get_name() const =0
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: