1
0
Fork 0
forked from lthn/blockchain

wallet2: keep tx_keys while resetting wallet's history

This commit is contained in:
sowle 2025-05-23 05:35:06 +03:00
parent ffe5051d8b
commit e66b21085b
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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);