Electroneum
gen_double_spend_base< concrete_test > Class Template Reference

#include <double_spend.h>

Inheritance diagram for gen_double_spend_base< concrete_test >:
Collaboration diagram for gen_double_spend_base< concrete_test >:

Public Member Functions

 gen_double_spend_base ()
 
bool check_tx_verification_context (const cryptonote::tx_verification_context &tvc, bool tx_added, size_t event_idx, const cryptonote::transaction &tx)
 
bool check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &block)
 
bool mark_last_valid_block (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool mark_invalid_tx (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool mark_invalid_block (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool check_double_spend (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
- 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 > &)
 

Static Public Attributes

static const uint64_t send_amount = FIRST_BLOCK_REWARD - TESTS_DEFAULT_FEE
 

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

template<class concrete_test>
class gen_double_spend_base< concrete_test >

Definition at line 40 of file double_spend.h.

Constructor & Destructor Documentation

◆ gen_double_spend_base()

template<class concrete_test>
gen_double_spend_base< concrete_test >::gen_double_spend_base ( )

Member Function Documentation

◆ check_block_verification_context()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::check_block_verification_context ( const cryptonote::block_verification_context bvc,
size_t  event_idx,
const cryptonote::block block 
)

◆ check_double_spend()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::check_double_spend ( cryptonote::core c,
size_t  ev_index,
const std::vector< test_event_entry > &  events 
)

◆ check_tx_verification_context()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::check_tx_verification_context ( const cryptonote::tx_verification_context tvc,
bool  tx_added,
size_t  event_idx,
const cryptonote::transaction tx 
)

◆ mark_invalid_block()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::mark_invalid_block ( cryptonote::core c,
size_t  ev_index,
const std::vector< test_event_entry > &  events 
)

◆ mark_invalid_tx()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::mark_invalid_tx ( cryptonote::core c,
size_t  ev_index,
const std::vector< test_event_entry > &  events 
)

◆ mark_last_valid_block()

template<class concrete_test>
bool gen_double_spend_base< concrete_test >::mark_last_valid_block ( cryptonote::core c,
size_t  ev_index,
const std::vector< test_event_entry > &  events 
)

Member Data Documentation

◆ send_amount

template<class concrete_test>
const uint64_t gen_double_spend_base< concrete_test >::send_amount = FIRST_BLOCK_REWARD - TESTS_DEFAULT_FEE
static

Definition at line 43 of file double_spend.h.


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