From e66b21085b85e0d1ef9bdfa66fc935f99c87a9a9 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 23 May 2025 05:35:06 +0300 Subject: [PATCH] wallet2: keep tx_keys while resetting wallet's history --- src/wallet/wallet2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c2f21bec..cac92913 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5214,7 +5214,9 @@ bool wallet2::reset_history() std::string pass = m_password; std::wstring file_path = m_wallet_file; account_base acc_tmp = m_account; + auto tx_keys = m_tx_keys; clear(); + m_tx_keys = tx_keys; m_account = acc_tmp; m_password = pass; prepare_file_names(file_path);