From 5f56d146c25c6db4cc7ef6a1b20dd3590f9c9c23 Mon Sep 17 00:00:00 2001 From: sowle Date: Mon, 24 Mar 2025 01:32:01 +0300 Subject: [PATCH] fixed an issue in pop_asset_info() with deregistering asset after HF5 during chain switching --- src/currency_core/blockchain_storage.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 31b607ca..a033e3de 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -4232,7 +4232,6 @@ bool blockchain_storage::pop_asset_info(const asset_descriptor_operation& ado, c if (is_hardfork_active_for_height(ZANO_HARDFORK_05, height)) { // NEW HF5 handling - assets_container::t_value_type local_asset_hist = *asset_history_ptr; asset_descriptor_operation& last_ado = local_asset_hist.back(); // above we made sure that the history isn't empty CHECK_AND_ASSERT_MES(last_ado.opt_descriptor.has_value(), false, "opt_descriptor is missing during asset pop, op: " << (int)ado.operation_type); asset_descriptor_base& last_adb = last_ado.opt_descriptor.get();