513 std::vector<tx_source_entry> sources;
514 std::vector<tx_destination_entry> destinations;
518 builder.step1_init();
519 builder.step2_fill_inputs(miner_account.get_keys(), sources);
521 txin_to_key& in_to_key = boost::get<txin_to_key>(builder.m_tx.vin.front());
525 in_to_key.
k_image = another_ki;
527 builder.step3_fill_outputs(destinations);
528 builder.step4_calc_hash();
531 builder.m_tx.signatures.resize(1);
532 builder.m_tx.signatures[0].resize(1);
533 builder.m_tx.signatures[0][0] = boost::value_initialized<crypto::signature>();
536 events.push_back(builder.m_tx);
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 TESTS_DEFAULT_FEE
void generate_key_image(const public_key &pub, const secret_key &sec, key_image &image)
device & get_device(const std::string &device_descriptor)
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS)
unsigned __int64 uint64_t
#define REWIND_BLOCKS(VEC_EVENTS, BLK_NAME, PREV_BLOCK, MINER_ACC)
crypto::key_image k_image
#define GENERATE_ACCOUNT(account)
#define DO_CALLBACK(VEC_EVENTS, CB_NAME)