From a17b8233dab86357117e9adc500a7c2520bee0bb Mon Sep 17 00:00:00 2001 From: stoffu Date: Wed, 15 Nov 2017 17:30:49 +0900 Subject: [PATCH] wallet2 bugfix: loading old m_unconfirmed_payments --- src/wallet/wallet2.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index b07295253..38898930d 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -610,14 +610,13 @@ namespace tools a & m_address_book; if(ver < 17) return; - if (ver < 21) + if (ver < 22) { // we're loading an old version, where m_unconfirmed_payments payload was payment_details - std::unordered_map m; + std::unordered_multimap m; a & m; for (const auto &i: m) m_unconfirmed_payments.insert(std::make_pair(i.first, pool_payment_details{i.second, false})); - return; } if(ver < 18) return;