Monero
Loading...
Searching...
No Matches
test_chain_unit_base Class Reference

#include <chaingen.h>

Inheritance diagram for test_chain_unit_base:

Public Types

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

Public Member Functions

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 > &)

Private Attributes

callbacks_map m_callbacks

Member Typedef Documentation

◆ callbacks_map

typedef std::map<std::string, verify_callback> test_chain_unit_base::callbacks_map

◆ verify_callback

typedef boost::function<bool (cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry> &events)> test_chain_unit_base::verify_callback

Member Function Documentation

◆ check_block_verification_context()

bool test_chain_unit_base::check_block_verification_context ( const cryptonote::block_verification_context & bvc,
size_t event_idx,
const cryptonote::block &  )

◆ check_tx_verification_context()

bool test_chain_unit_base::check_tx_verification_context ( const cryptonote::tx_verification_context & tvc,
bool ,
size_t ,
const cryptonote::transaction &  )

◆ check_tx_verification_context_array()

bool test_chain_unit_base::check_tx_verification_context_array ( const std::vector< cryptonote::tx_verification_context > & tvcs,
size_t ,
size_t ,
const std::vector< cryptonote::transaction > &  )

◆ register_callback()

void test_chain_unit_base::register_callback ( const std::string & cb_name,
verify_callback cb )

◆ verify()

bool test_chain_unit_base::verify ( const std::string & cb_name,
cryptonote::core & c,
size_t ev_index,
const std::vector< test_event_entry > & events )

Member Data Documentation

◆ m_callbacks

callbacks_map test_chain_unit_base::m_callbacks
private

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