1
0
Fork 0
forked from lthn/blockchain

wallet: keep custom added assets while resetting history

This commit is contained in:
sowle 2025-07-11 21:46:03 +03:00
parent 0cd2ef8ccb
commit 5e0c84e735
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

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