57 events.push_back(tx_1);
61 events.push_back(tx_2);
77 std::vector<block> block_list;
81 std::vector<block>
blocks(block_list.begin(), block_list.end());
91 std::vector<cryptonote::block> chain;
#define CRYPTONOTE_MINED_ETN_UNLOCK_WINDOW
#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)
#define INIT_DOUBLE_SPEND_TEST()
#define MAKE_NEXT_BLOCK(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define TESTS_DEFAULT_FEE
uint64_t get_balance(const cryptonote::account_base &addr, const std::vector< cryptonote::block > &blockchain, const map_hash2tx_t &mtx)
#define SET_EVENT_VISITOR_SETT(VEC_EVENTS, SETT, VAL)
#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
gen_double_spend_in_different_chains()
handles core cryptonote functionality
bool generate(std::vector< test_event_entry > &events) const
#define REGISTER_CALLBACK_METHOD(CLASS, METHOD)
size_t get_pool_transactions_count() const
get the total number of transactions in the pool
size_t get_alternative_blocks_count() const
returns the number of alternative blocks stored
#define MAKE_TX(VEC_EVENTS, TX_NAME, FROM, TO, AMOUNT, HEAD)
crypto::hash get_block_hash(uint64_t height)
#define DEFINE_TESTS_ERROR_CONTEXT(text)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)
bool check_double_spend(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
uint64_t get_block_height(const block &b)