mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-11 05:33:28 +01:00
Merge pull request #3116
269ba252
wallet2::import_blockchain fix import loop (Jaquee)
This commit is contained in:
commit
d061c312fb
@ -8840,7 +8840,7 @@ void wallet2::import_blockchain(const std::tuple<size_t, crypto::hash, std::vect
|
|||||||
m_blockchain.clear();
|
m_blockchain.clear();
|
||||||
if (std::get<0>(bc))
|
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.push_back(std::get<1>(bc));
|
||||||
m_blockchain.trim(std::get<0>(bc));
|
m_blockchain.trim(std::get<0>(bc));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user