Electroneum
gen_tx_no_inputs_no_outputs Struct Reference

#include <tx_validation.h>

Inheritance diagram for gen_tx_no_inputs_no_outputs:
Collaboration diagram for gen_tx_no_inputs_no_outputs:

Public Member Functions

bool generate (std::vector< test_event_entry > &events) const
 
- Public Member Functions inherited from get_tx_validation_base
 get_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 > &)
 
- 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 93 of file tx_validation.h.

Member Function Documentation

◆ generate()

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

Definition at line 288 of file tx_validation.cpp.

289 {
290  uint64_t ts_start = 1338224400;
291 
292  GENERATE_ACCOUNT(miner_account);
293  MAKE_GENESIS_BLOCK(events, blk_0, miner_account, ts_start);
294 
295  tx_builder builder;
296  builder.step1_init();
297 
298  DO_CALLBACK(events, "mark_invalid_tx");
299  events.push_back(builder.m_tx);
300 
301  return true;
302 }
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
Definition: chaingen.h:833
unsigned __int64 uint64_t
Definition: stdint.h:136
#define GENERATE_ACCOUNT(account)
Definition: chaingen.h:801
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)
Definition: chaingen.h:820

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