Warnings: unused var at cryptonote_tx_utils.cpp

This commit is contained in:
mj-xmr 2021-05-02 18:00:29 +02:00
parent 0a1ddc2eff
commit 581c3af03a
No known key found for this signature in database
GPG key ID: C101BF94093451E0

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);