aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-27 17:27:07 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-27 17:27:07 -0800
commitd061c312fb819731d6997b7ccc42d7ea50be0d53 (patch)
tree32a1a67be22988e2afcb83a121cb17fa9235d6b4
parentMerge pull request #2969 (diff)
parentwallet2::import_blockchain fix import loop (diff)
downloadmonero-d061c312fb819731d6997b7ccc42d7ea50be0d53.tar.xz
Merge pull request #3116
269ba252 wallet2::import_blockchain fix import loop (Jaquee)
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 853995c96..016b19042 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -8840,7 +8840,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));
}