From 269ba252283351369e87b2661480977ee0b0c3df Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 14 Jan 2018 20:25:18 +0100 Subject: wallet2::import_blockchain fix import loop --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(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)); } -- cgit v1.2.3