From d88e1952a6bd2dc93835f377d22b4bc8593764a0 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 25 Oct 2024 15:26:45 +0400 Subject: [PATCH] additional condition to handle ado tx --- src/wallet/wallet2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 4e6a93ec..f688cc16 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -975,7 +975,9 @@ void wallet2::process_new_transaction(const currency::transaction& tx, uint64_t //check if there are asset_registration that belong to this wallet const asset_descriptor_operation* pado = get_type_in_variant_container(tx.extra); - if (pado && (ptc.employed_entries.receive.size() || ptc.employed_entries.spent.size() || (pado->opt_descriptor.has_value() && pado->opt_descriptor->owner == m_account.get_public_address().spend_public_key))) + if (pado && (ptc.employed_entries.receive.size() || ptc.employed_entries.spent.size() || (pado->opt_descriptor.has_value() && pado->opt_descriptor->owner == m_account.get_public_address().spend_public_key) || + (pado->opt_asset_id.has_value() && m_own_asset_descriptors.count(pado->opt_asset_id.value())) + )) { //check if there are asset_registration that belong to this wallet process_ado_in_new_transaction(*pado, ptc);