From 5fd2899fd2cd61a2481f7f87bbdedcbbfb348e7c Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 26 Oct 2022 01:07:52 +0200 Subject: [PATCH] coretests: fill_tx_sources fixed --- tests/core_tests/chaingen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index fe87bcaa..8f2cfadf 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -1223,7 +1223,7 @@ bool fill_tx_sources(std::vector& sources, const std: // Iterate in reverse is more efficiency uint64_t sources_amount = 0; bool sources_found = false; - for(const map_output_t::value_type o : outs_mine) + BOOST_REVERSE_FOREACH(const map_output_t::value_type o, outs_mine) { for (size_t i = 0; i < o.second.size() && !sources_found; ++i) {