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