We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c249e22 commit 0174cffCopy full SHA for 0174cff
src/wallet/tx_builder.cpp
@@ -303,7 +303,8 @@ std::vector<carrot::InputCandidate> collect_carrot_input_candidate_list(
303
for (std::size_t i = 0; i < transfers.size(); ++i)
304
{
305
const wallet2_basic::transfer_details &td = transfers.at(i);
306
- if (best_transfer_by_ota.at(td.get_public_key()) != i)
+ const auto best_it = best_transfer_by_ota.find(td.get_public_key());
307
+ if (best_it == best_transfer_by_ota.cend() || best_it->second != i)
308
continue;
309
310
if (!is_transfer_usable_for_input_selection(td,
0 commit comments