253{
255
259
261 events.pop_back();
262
264 events.push_back(blk_tmp.miner_tx);
265
266 auto make_tx_with_input = [&](
const txin_v& tx_input) -> transaction
267 {
268 std::vector<tx_source_entry> sources;
269 std::vector<tx_destination_entry> destinations;
271
272 tx_builder builder;
273 builder.step1_init();
274 builder.m_tx.
vin.push_back(tx_input);
275 builder.step3_fill_outputs(destinations);
276 return builder.m_tx;
277 };
278
280 events.push_back(make_tx_with_input(txin_to_script()));
281
283 events.push_back(make_tx_with_input(txin_to_scripthash()));
284
285 return true;
286}
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 MAKE_NEXT_BLOCK(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)
#define TESTS_DEFAULT_FEE
#define GENERATE_ACCOUNT(account)
std::vector< txin_v > vin
boost::variant< txin_gen, txin_to_script, txin_to_scripthash, txin_to_key, txin_to_key_public > txin_v
unsigned __int64 uint64_t