forked from lthn/blockchain
additional condition to handle ado tx
This commit is contained in:
parent
26f2f7511a
commit
d88e1952a6
1 changed files with 3 additions and 1 deletions
|
|
@ -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<const asset_descriptor_operation>(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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue