1
0
Fork 0
forked from lthn/blockchain

coretests: fill_tx_sources fixed

This commit is contained in:
sowle 2022-10-26 01:07:52 +02:00
parent 5f9aea7a22
commit 5fd2899fd2
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1223,7 +1223,7 @@ bool fill_tx_sources(std::vector<currency::tx_source_entry>& 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)
{