|
Electroneum
|
#include <double_spend.h>


Public Member Functions | |
| gen_double_spend_in_different_chains () | |
| bool | generate (std::vector< test_event_entry > &events) const |
| 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 |
| static const size_t | expected_blockchain_height = 4 + 2 * CRYPTONOTE_MINED_ETN_UNLOCK_WINDOW |
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_callback > | callbacks_map |
Definition at line 127 of file double_spend.h.
| gen_double_spend_in_different_chains::gen_double_spend_in_different_chains | ( | ) |
Definition at line 41 of file double_spend.cpp.
| bool gen_double_spend_in_different_chains::check_double_spend | ( | cryptonote::core & | c, |
| size_t | ev_index, | ||
| const std::vector< test_event_entry > & | events | ||
| ) |
Definition at line 73 of file double_spend.cpp.

| bool gen_double_spend_in_different_chains::generate | ( | std::vector< test_event_entry > & | events | ) | const |
Definition at line 46 of file double_spend.cpp.

|
static |
Definition at line 131 of file double_spend.h.
|
static |
Definition at line 130 of file double_spend.h.