diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:27:07 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:27:07 -0800 |
commit | d061c312fb819731d6997b7ccc42d7ea50be0d53 (patch) | |
tree | 32a1a67be22988e2afcb83a121cb17fa9235d6b4 | |
parent | Merge pull request #2969 (diff) | |
parent | wallet2::import_blockchain fix import loop (diff) | |
download | monero-d061c312fb819731d6997b7ccc42d7ea50be0d53.tar.xz |
Merge pull request #3116
269ba252 wallet2::import_blockchain fix import loop (Jaquee)
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
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)); } |