make pre-carrot construction & carrot receiving work.

This commit is contained in:
akildemir
2025-05-20 14:47:13 +03:00
parent 5f6122d045
commit f2f21a49b1
2 changed files with 4 additions and 1 deletions

View File

@@ -289,6 +289,9 @@ bool try_load_carrot_enote_from_transaction_v1(const cryptonote::transaction &tx
//K_o
enote_out.onetime_address = c->key;
// asset_type
enote_out.asset_type = c->asset_type;
//vt
enote_out.view_tag = c->view_tag;

View File

@@ -109,7 +109,7 @@ static bool try_load_pre_carrot_enote(const bool is_coinbase,
enote_out.local_output_index = local_output_index;
enote_out.encrypted_amount = tx.version == 2 && !is_coinbase;
enote_out.encrypted_amount = tx.version >= 2 && !is_coinbase;
enote_out.short_amount = rct::is_rct_short_amount(tx.rct_signatures.type);
if (enote_out.encrypted_amount)