73 alice = boost::get<cryptonote::account_base>(events[1]);
82 std::vector<cryptonote::block>
blocks;
83 std::list<crypto::public_key> outs;
118 std::vector<cryptonote::block> chain;
#define MAKE_NEXT_BLOCK_TX1(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, TX1)
bool find_block_chain(const std::vector< test_event_entry > &events, std::vector< cryptonote::block > &blockchain, map_hash2tx_t &mtx, const crypto::hash &head)
bool generate(std::vector< test_event_entry > &events)
#define MAKE_NEXT_BLOCK(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
uint64_t get_balance(const cryptonote::account_base &addr, const std::vector< cryptonote::block > &blockchain, const map_hash2tx_t &mtx)
#define MAKE_TX_LIST(VEC_EVENTS, SET_NAME, FROM, TO, AMOUNT, HEAD)
#define CHECK_TEST_CONDITION(cond)
bool get_blocks(uint64_t start_offset, size_t count, std::vector< std::pair< cryptonote::blobdata, block >> &blocks, std::vector< cryptonote::blobdata > &txs) const
Holds cryptonote related classes and helpers.
std::unordered_map< crypto::hash, const cryptonote::transaction * > map_hash2tx_t
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 verify_callback_1(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define MAKE_TX_LIST_START(VEC_EVENTS, SET_NAME, FROM, TO, AMOUNT, HEAD)
bool verify_1(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define MAKE_ACCOUNT(VEC_EVENTS, account)
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define MAKE_TX(VEC_EVENTS, TX_NAME, FROM, TO, AMOUNT, HEAD)
crypto::hash get_block_hash(uint64_t height)
#define GENERATE_ACCOUNT(account)
#define DEFINE_TESTS_ERROR_CONTEXT(text)
bool verify_callback_2(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)
#define MAKE_NEXT_BLOCK_TX_LIST(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, TXLIST)
size_t get_blockchain_total_transactions() const
gets the total number of transactions on the main chain
bool generate(std::vector< test_event_entry > &events)