326{
328
332
333 std::vector<tx_source_entry> sources;
334 std::vector<tx_destination_entry> destinations;
336 destinations.clear();
337
338 tx_builder builder;
339 builder.step1_init();
340 builder.step2_fill_inputs(miner_account.get_keys(), sources);
341 builder.step3_fill_outputs(destinations);
342 builder.step4_calc_hash();
343 builder.step5_sign(sources);
344
345 events.push_back(builder.m_tx);
347
348 return true;
349}
void fill_tx_sources_and_destinations(const std::vector< test_event_entry > &events, const block &blk_head, const cryptonote::account_base &from, const cryptonote::account_public_address &to, uint64_t amount, uint64_t fee, size_t nmix, std::vector< tx_source_entry > &sources, std::vector< tx_destination_entry > &destinations)
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
#define TESTS_DEFAULT_FEE
#define GENERATE_ACCOUNT(account)
#define MAKE_NEXT_BLOCK_TX1(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC, TX1)
unsigned __int64 uint64_t