diff options
author | mj-xmr <mjxmr@protonmail.com> | 2021-05-02 18:00:29 +0200 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-05-02 18:00:29 +0200 |
commit | 581c3af03ae78e15761d00d8c90e9d03261034ff (patch) | |
tree | 873bc9a7513519bc21084d0b5d8855e10419f50f /src/cryptonote_core | |
parent | Merge pull request #7669 (diff) | |
download | monero-581c3af03ae78e15761d00d8c90e9d03261034ff.tar.xz |
Warnings: unused var at cryptonote_tx_utils.cpp
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index 7400c4328..f41c63a4b 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -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); |