From 5e0c84e735606ff81584d43afe487fbd39a50724 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 11 Jul 2025 21:46:03 +0300 Subject: [PATCH] wallet: keep custom added assets while resetting history --- src/wallet/wallet2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index bd59f381..13989d91 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5252,7 +5252,9 @@ bool wallet2::reset_history() auto tx_keys = m_tx_keys; auto pending_key_images = m_pending_key_images; crypto::hash genesis_id = m_chain.get_genesis(); + auto custom_assets = m_custom_assets; clear(); + m_custom_assets = custom_assets; m_chain.set_genesis(genesis_id); m_pending_key_images = pending_key_images; m_tx_keys = tx_keys;