diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2018-01-14 20:25:18 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2018-01-14 20:30:35 +0100 |
| commit | 269ba252283351369e87b2661480977ee0b0c3df (patch) | |
| tree | 6a523f7b0c44467bf1087c8e476473000a92ebd3 | |
| parent | 35d5aa36c9b2f4bba169e5947039bf7871649ee1 (diff) | |
| download | monzero-core-269ba252283351369e87b2661480977ee0b0c3df.tar.gz monzero-core-269ba252283351369e87b2661480977ee0b0c3df.tar.xz monzero-core-269ba252283351369e87b2661480977ee0b0c3df.zip | |
wallet2::import_blockchain fix import loop
| -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 2af41f588..a02816e2b 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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)); } |
