mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #2816
a17b8233
wallet2 bugfix: loading old m_unconfirmed_payments (stoffu)
This commit is contained in:
commit
2751a477d8
@ -610,14 +610,13 @@ namespace tools
|
|||||||
a & m_address_book;
|
a & m_address_book;
|
||||||
if(ver < 17)
|
if(ver < 17)
|
||||||
return;
|
return;
|
||||||
if (ver < 21)
|
if (ver < 22)
|
||||||
{
|
{
|
||||||
// we're loading an old version, where m_unconfirmed_payments payload was payment_details
|
// we're loading an old version, where m_unconfirmed_payments payload was payment_details
|
||||||
std::unordered_map<crypto::hash, payment_details> m;
|
std::unordered_multimap<crypto::hash, payment_details> m;
|
||||||
a & m;
|
a & m;
|
||||||
for (const auto &i: m)
|
for (const auto &i: m)
|
||||||
m_unconfirmed_payments.insert(std::make_pair(i.first, pool_payment_details{i.second, false}));
|
m_unconfirmed_payments.insert(std::make_pair(i.first, pool_payment_details{i.second, false}));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if(ver < 18)
|
if(ver < 18)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user