wallet2::import_blockchain fix import loop

This commit is contained in:
Jaquee 2018-01-14 20:25:18 +01:00
parent 35d5aa36c9
commit 269ba25228
1 changed files with 1 additions and 1 deletions

View File

@ -8597,7 +8597,7 @@ void wallet2::import_blockchain(const std::tuple<size_t, crypto::hash, std::vect
m_blockchain.clear();
if (std::get<0>(bc))
{
for (size_t n = std::get<0>(bc); n > 0; ++n)
for (size_t n = std::get<0>(bc); n > 0; --n)
m_blockchain.push_back(std::get<1>(bc));
m_blockchain.trim(std::get<0>(bc));
}