Electroneum
tools::wallet2::confirmed_transfer_details Struct Reference

#include <wallet2.h>

Collaboration diagram for tools::wallet2::confirmed_transfer_details:

Public Member Functions

 confirmed_transfer_details ()
 
 confirmed_transfer_details (const unconfirmed_transfer_details &utd, uint64_t height)
 

Public Attributes

uint64_t m_amount_in
 
uint64_t m_amount_out
 
uint64_t m_change
 
uint64_t m_block_height
 
std::vector< cryptonote::tx_destination_entrym_dests
 
crypto::hash m_payment_id
 
uint64_t m_timestamp
 
uint64_t m_unlock_time
 
uint32_t m_subaddr_account
 
std::set< uint32_tm_subaddr_indices
 
std::vector< std::pair< crypto::key_image, std::vector< uint64_t > > > m_rings
 
bool m_is_migration
 
bool m_is_sc_migration
 

Detailed Description

Definition at line 394 of file wallet2.h.

Constructor & Destructor Documentation

◆ confirmed_transfer_details() [1/2]

tools::wallet2::confirmed_transfer_details::confirmed_transfer_details ( )
inline

◆ confirmed_transfer_details() [2/2]

tools::wallet2::confirmed_transfer_details::confirmed_transfer_details ( const unconfirmed_transfer_details utd,
uint64_t  height 
)
inline

Definition at line 411 of file wallet2.h.

411  :
412  m_amount_in(utd.m_amount_in), m_amount_out(utd.m_amount_out), m_change(utd.m_change), m_block_height(height), m_dests(utd.m_dests), m_payment_id(utd.m_payment_id), m_timestamp(utd.m_timestamp), m_unlock_time(utd.m_tx.unlock_time), m_subaddr_account(utd.m_subaddr_account), m_subaddr_indices(utd.m_subaddr_indices), m_rings(utd.m_rings), m_is_migration(utd.m_tx.version == 2),
413  m_is_sc_migration(std::any_of(utd.m_dests.begin(), utd.m_dests.end(), [](
414  cryptonote::tx_destination_entry dest) { // Nb one or the other = workaround to save messing with this struct/nettype. Old bridge addr wont be used on revised mainnet anyway
415  return (epee::string_tools::pod_to_hex(dest.addr.m_spend_public_key) == "5bd0c0e25eee6133850edd2b255ed9e3d6bb99fd5f08b7b5cf7f2618ad6ff2a3" && epee::string_tools::pod_to_hex(dest.addr.m_view_public_key) == "5866666666666666666666666666666666666666666666666666666666666666")
416  || (epee::string_tools::pod_to_hex(dest.addr.m_spend_public_key) == "8ce0f34fd37c7f7d07c44024eb5b3cdf275d1b3e75c3464b808dce532e861137" && epee::string_tools::pod_to_hex(dest.addr.m_view_public_key) == "2b95a2eb2c62253c57e82b082b850bbf22a1a7829aaea09c7c1511c1cced4375");
417  })) {}
CXA_THROW_INFO_T void(* dest)(void *))
Definition: stack_trace.cpp:91
uint64_t height
Definition: blockchain.cpp:91
std::vector< cryptonote::tx_destination_entry > m_dests
Definition: wallet2.h:400
std::string pod_to_hex(const t_pod_type &s)
Definition: string_tools.h:317
std::set< uint32_t > m_subaddr_indices
Definition: wallet2.h:405
std::vector< std::pair< crypto::key_image, std::vector< uint64_t > > > m_rings
Definition: wallet2.h:406
Here is the call graph for this function:

Member Data Documentation

◆ m_amount_in

uint64_t tools::wallet2::confirmed_transfer_details::m_amount_in

Definition at line 396 of file wallet2.h.

◆ m_amount_out

uint64_t tools::wallet2::confirmed_transfer_details::m_amount_out

Definition at line 397 of file wallet2.h.

◆ m_block_height

uint64_t tools::wallet2::confirmed_transfer_details::m_block_height

Definition at line 399 of file wallet2.h.

◆ m_change

uint64_t tools::wallet2::confirmed_transfer_details::m_change

Definition at line 398 of file wallet2.h.

◆ m_dests

std::vector<cryptonote::tx_destination_entry> tools::wallet2::confirmed_transfer_details::m_dests

Definition at line 400 of file wallet2.h.

◆ m_is_migration

bool tools::wallet2::confirmed_transfer_details::m_is_migration

Definition at line 407 of file wallet2.h.

◆ m_is_sc_migration

bool tools::wallet2::confirmed_transfer_details::m_is_sc_migration

Definition at line 408 of file wallet2.h.

◆ m_payment_id

crypto::hash tools::wallet2::confirmed_transfer_details::m_payment_id

Definition at line 401 of file wallet2.h.

◆ m_rings

std::vector<std::pair<crypto::key_image, std::vector<uint64_t> > > tools::wallet2::confirmed_transfer_details::m_rings

Definition at line 406 of file wallet2.h.

◆ m_subaddr_account

uint32_t tools::wallet2::confirmed_transfer_details::m_subaddr_account

Definition at line 404 of file wallet2.h.

◆ m_subaddr_indices

std::set<uint32_t> tools::wallet2::confirmed_transfer_details::m_subaddr_indices

Definition at line 405 of file wallet2.h.

◆ m_timestamp

uint64_t tools::wallet2::confirmed_transfer_details::m_timestamp

Definition at line 402 of file wallet2.h.

◆ m_unlock_time

uint64_t tools::wallet2::confirmed_transfer_details::m_unlock_time

Definition at line 403 of file wallet2.h.


The documentation for this struct was generated from the following file: