From 7a9f54443ba9a9a1b2b06ec31f1227c9ff2317a3 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 28 Oct 2023 19:25:31 +0200 Subject: [PATCH] fixed bug with m_own_asset_descriptors container not being reset after resync wallet --- src/currency_core/currency_config.h | 4 ++-- src/wallet/wallet2.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/currency_core/currency_config.h b/src/currency_core/currency_config.h index 2a2a5d69..3a48cf8c 100644 --- a/src/currency_core/currency_config.h +++ b/src/currency_core/currency_config.h @@ -246,8 +246,8 @@ #define WALLET_FILE_SERIALIZATION_VERSION 160 #define WALLET_FILE_LAST_SUPPORTED_VERSION 160 #else -#define WALLET_FILE_LAST_SUPPORTED_VERSION (CURRENCY_FORMATION_VERSION+73) -#define WALLET_FILE_SERIALIZATION_VERSION (CURRENCY_FORMATION_VERSION+73) +#define WALLET_FILE_LAST_SUPPORTED_VERSION (CURRENCY_FORMATION_VERSION+74) +#define WALLET_FILE_SERIALIZATION_VERSION (CURRENCY_FORMATION_VERSION+74) #endif #define CURRENT_MEMPOOL_ARCHIVE_VER (CURRENCY_FORMATION_VERSION+31) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 4f4117c1..e805280d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2842,6 +2842,7 @@ bool wallet2::reset_all() m_last_pow_block_h = 0; m_current_wallet_file_size = 0; m_custom_assets.clear(); + m_own_asset_descriptors.clear(); return true; } //----------------------------------------------------------------------------------------------------