110 DO_CALLBACK(events,
"check_split_not_switched_back");
112 DO_CALLBACK(events,
"check_split_switched_back_1");
114 DO_CALLBACK(events,
"check_split_switched_back_2");
118 MAKE_TX(events, tx_0, first_miner_account, alice,
MK_COINS(10), blk_23);
119 MAKE_TX(events, tx_1, first_miner_account, alice,
MK_COINS(20), blk_23);
120 MAKE_TX(events, tx_2, first_miner_account, alice,
MK_COINS(30), blk_23);
#define MAKE_NEXT_BLOCK_TX1(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, TX1)
bool check_split_switched(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
crypto::hash get_tail_id() const
get the hash of the most recent block on the blockchain
bool check_split_not_switched_back(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
gen_simple_chain_split_1()
bool check_mempool_1(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define MAKE_NEXT_BLOCK(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define CHECK_TEST_CONDITION(cond)
Holds cryptonote related classes and helpers.
uint64_t get_current_blockchain_height() const
get the current height of the blockchain
bool check_split_switched_back_2(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
handles core cryptonote functionality
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
#define REGISTER_CALLBACK(CB_NAME, CLBACK)
unsigned __int64 uint64_t
bool generate(std::vector< test_event_entry > &events) const
bool check_split_switched_back_1(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
size_t get_pool_transactions_count() const
get the total number of transactions in the pool
bool check_split_not_switched2(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
size_t get_alternative_blocks_count() const
returns the number of alternative blocks stored
bool check_mempool_2(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define MAKE_TX(VEC_EVENTS, TX_NAME, FROM, TO, AMOUNT, HEAD)
bool check_split_not_switched(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
crypto::hash get_block_hash(uint64_t height)
#define GENERATE_ACCOUNT(account)
#define DEFINE_TESTS_ERROR_CONTEXT(text)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)
size_t get_blockchain_total_transactions() const
gets the total number of transactions on the main chain