Merge pull request #7705

581c3af Warnings: unused var at cryptonote_tx_utils.cpp (mj-xmr)
This commit is contained in:
luigi1111 2021-06-01 22:06:27 -05:00
commit d845a5a0c3
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -622,8 +622,10 @@ namespace cryptonote
if (need_additional_txkeys) if (need_additional_txkeys)
{ {
additional_tx_keys.clear(); additional_tx_keys.clear();
for (const auto &d: destinations) for (size_t i = 0; i < destinations.size(); ++i)
{
additional_tx_keys.push_back(keypair::generate(sender_account_keys.get_device()).sec); additional_tx_keys.push_back(keypair::generate(sender_account_keys.get_device()).sec);
}
} }
bool r = construct_tx_with_tx_key(sender_account_keys, subaddresses, sources, destinations, change_addr, extra, tx, unlock_time, tx_key, additional_tx_keys, rct, rct_config, msout); bool r = construct_tx_with_tx_key(sender_account_keys, subaddresses, sources, destinations, change_addr, extra, tx, unlock_time, tx_key, additional_tx_keys, rct, rct_config, msout);