Electroneum
gen_v2_tx_unmixable_one Struct Reference

#include <v2_tests.h>

Inheritance diagram for gen_v2_tx_unmixable_one:
Collaboration diagram for gen_v2_tx_unmixable_one:

Public Member Functions

bool generate (std::vector< test_event_entry > &events) const
 
- Public Member Functions inherited from gen_v2_tx_validation_base
 gen_v2_tx_validation_base ()
 
bool check_tx_verification_context (const cryptonote::tx_verification_context &tvc, bool tx_added, size_t event_idx, const cryptonote::transaction &)
 
bool check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &)
 
bool mark_invalid_block (cryptonote::core &, size_t ev_index, const std::vector< test_event_entry > &)
 
bool mark_invalid_tx (cryptonote::core &, size_t ev_index, const std::vector< test_event_entry > &)
 
bool generate_with (std::vector< test_event_entry > &events, const int *out_idx, int mixin, uint64_t amount_paid, bool valid) const
 
- Public Member Functions inherited from test_chain_unit_base
void register_callback (const std::string &cb_name, verify_callback cb)
 
bool verify (const std::string &cb_name, cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &)
 
bool check_tx_verification_context (const cryptonote::tx_verification_context &tvc, bool, size_t, const cryptonote::transaction &)
 
bool check_tx_verification_context_array (const std::vector< cryptonote::tx_verification_context > &tvcs, size_t, size_t, const std::vector< cryptonote::transaction > &)
 

Additional Inherited Members

- Public Types inherited from test_chain_unit_base
typedef boost::function< bool(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)> verify_callback
 
typedef std::map< std::string, verify_callbackcallbacks_map
 

Detailed Description

Definition at line 107 of file v2_tests.h.

Member Function Documentation

◆ generate()

bool gen_v2_tx_unmixable_one::generate ( std::vector< test_event_entry > &  events) const

Definition at line 145 of file v2_tests.cpp.

146 {
147  const int mixin = 0;
148  const int out_idx[] = {0, 1, -1};
149  const uint64_t amount_paid = 10000;
150  return generate_with(events, out_idx, mixin, amount_paid, true);
151 }
bool generate_with(std::vector< test_event_entry > &events, const int *out_idx, int mixin, uint64_t amount_paid, bool valid) const
Definition: v2_tests.cpp:42
unsigned __int64 uint64_t
Definition: stdint.h:136

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