127 std::vector<tx_destination_entry> destinations;
129 for (
size_t n = 1; n <
outputs; ++n)
133 std::vector<crypto::secret_key> additional_tx_keys;
134 std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
137 m_txes.resize(a_num_txes + (extra_outs > 0 ? 1 : 0));
138 for (
size_t n = 0; n < a_num_txes; ++n)
140 if (!
construct_tx_and_get_tx_key(this->m_miners[this->
real_source_idx].get_keys(), subaddresses, this->
m_sources, destinations,
cryptonote::account_public_address{}, std::vector<uint8_t>(), m_txes[n], 0, tx_key, additional_tx_keys,
true, {
rct::RangeProofPaddedBulletproof, 2}))
146 destinations.clear();
148 for (
size_t n = 1; n < extra_outs; ++n)
151 if (!
construct_tx_and_get_tx_key(this->m_miners[this->
real_source_idx].get_keys(), subaddresses, this->
m_sources, destinations,
cryptonote::account_public_address{}, std::vector<uint8_t>(), m_txes.back(), 0, tx_key, additional_tx_keys,
true, {
rct::RangeProofMultiOutputBulletproof, 2}))
cryptonote::account_base m_miners[ring_size]
static const size_t real_source_idx
const account_keys & get_keys() const
Holds cryptonote related classes and helpers.
crypto::public_key m_spend_public_key
account_public_address m_account_address
static const size_t outputs
std::vector< cryptonote::tx_source_entry > m_sources
bool construct_tx_and_get_tx_key(const account_keys &sender_account_keys, const std::unordered_map< crypto::public_key, subaddress_index > &subaddresses, std::vector< tx_source_entry > &sources, 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, crypto::secret_key &tx_key, std::vector< crypto::secret_key > &additional_tx_keys, bool rct, const rct::RCTConfig &rct_config, rct::multisig_out *msout, const uint32_t account_major_offset, const cryptonote::network_type nettype)