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
1 changed files with 3 additions and 1 deletions

View File

@ -622,8 +622,10 @@ namespace cryptonote
if (need_additional_txkeys)
{
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);
}
}
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);