Electroneum
single_tx_test_base Class Reference

#include <single_tx_test_base.h>

Inheritance diagram for single_tx_test_base:
Collaboration diagram for single_tx_test_base:

Public Member Functions

bool init ()
 

Protected Attributes

cryptonote::account_base m_bob
 
cryptonote::transaction m_tx
 
crypto::public_key m_tx_pub_key
 
std::vector< crypto::public_keym_additional_tx_pub_keys
 

Detailed Description

Definition at line 38 of file single_tx_test_base.h.

Member Function Documentation

◆ init()

bool single_tx_test_base::init ( )
inline

Definition at line 41 of file single_tx_test_base.h.

42  {
43  using namespace cryptonote;
44 
45  m_bob.generate();
46 
47  if (!construct_miner_tx(0, 0, 0, 2, 0, m_bob.get_keys().m_account_address, m_tx))
48  return false;
49 
52  return true;
53  }
std::vector< crypto::public_key > m_additional_tx_pub_keys
crypto::public_key m_tx_pub_key
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
Definition: account.cpp:158
const account_keys & get_keys() const
Definition: account.cpp:264
Holds cryptonote related classes and helpers.
Definition: ban.cpp:40
crypto::public_key get_tx_pub_key_from_extra(const std::vector< uint8_t > &tx_extra, size_t pk_index)
account_public_address m_account_address
Definition: account.h:43
cryptonote::account_base m_bob
cryptonote::transaction m_tx
bool construct_miner_tx(size_t height, size_t median_weight, uint64_t already_generated_coins, size_t current_block_weight, uint64_t fee, const account_public_address &miner_address, transaction &tx, const blobdata &extra_nonce, size_t max_outs, uint8_t hard_fork_version, network_type nettype)
std::vector< crypto::public_key > get_additional_tx_pub_keys_from_extra(const std::vector< uint8_t > &tx_extra)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_additional_tx_pub_keys

std::vector<crypto::public_key> single_tx_test_base::m_additional_tx_pub_keys
protected

Definition at line 59 of file single_tx_test_base.h.

◆ m_bob

cryptonote::account_base single_tx_test_base::m_bob
protected

Definition at line 56 of file single_tx_test_base.h.

◆ m_tx

cryptonote::transaction single_tx_test_base::m_tx
protected

Definition at line 57 of file single_tx_test_base.h.

◆ m_tx_pub_key

crypto::public_key single_tx_test_base::m_tx_pub_key
protected

Definition at line 58 of file single_tx_test_base.h.


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