156 std::vector<cryptonote::tx_source_entry> sources;
157 for (
size_t i = 0; i < blk_0.miner_tx.vout.size(); ++i)
161 append_tx_source_entry(sources, blk_0.miner_tx, i);
170 std::vector<cryptonote::tx_destination_entry> destinations;
178 if (!
construct_tx(miner_account.get_keys(), sources, destinations, boost::none, std::vector<uint8_t>(), tx_1, 0))
180 events.push_back(tx_1);
187 for (
size_t i = 0; i < tx_1.
vout.size(); ++i)
189 auto& tx_1_out = tx_1.
vout[i];
193 append_tx_source_entry(sources, tx_1, i);
196 destinations.clear();
198 de.
addr = alice_account.get_keys().m_account_address;
200 destinations.push_back(de);
201 destinations.push_back(de);
204 if (!
construct_tx(bob_account.get_keys(), sources, destinations, boost::none, std::vector<uint8_t>(), tx_2, 0))
206 events.push_back(tx_2);
#define MAKE_NEXT_BLOCK_TX1(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, TX1)
bool construct_tx(const account_keys &sender_account_keys, std::vector< tx_source_entry > &sources, const std::vector< tx_destination_entry > &destinations, const boost::optional< cryptonote::account_public_address > &change_addr, const std::vector< uint8_t > &extra, transaction &tx, uint64_t unlock_time)
#define TESTS_DEFAULT_FEE
std::vector< tx_out > vout
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
unsigned __int64 uint64_t
account_public_address addr
#define MAKE_ACCOUNT(VEC_EVENTS, account)
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define GENERATE_ACCOUNT(account)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)