fixed field ordering to allow GCC to compile; removed unlock_time field from CARROT/SPARC TX outputs

This commit is contained in:
Some Random Crypto Guy
2025-05-19 11:13:01 +01:00
parent e3e35f6dde
commit 60b3f22376
5 changed files with 5 additions and 8 deletions
+2 -4
View File
@@ -67,16 +67,14 @@ struct CarrotEnoteV1 final
encrypted_amount_t amount_enc;
/// anchor_enc
encrypted_janus_anchor_t anchor_enc;
/// return_enc
encrypted_return_pubkey_t return_enc;
/// view_tag
view_tag_t view_tag;
/// D_e
mx25519_pubkey enote_ephemeral_pubkey;
/// L_0
crypto::key_image tx_first_key_image;
/// return_enc
encrypted_return_pubkey_t return_enc;
/// asset_type
std::string asset_type;
};
/// equality operators
+1 -1
View File
@@ -379,8 +379,8 @@ cryptonote::transaction store_carrot_to_coinbase_transaction_v1(
tx.vout.push_back(cryptonote::tx_out{enote.amount,
cryptonote::txout_to_carrot_v1{
.key = enote.onetime_address,
.view_tag = enote.view_tag,
.asset_type = enote.asset_type,
.view_tag = enote.view_tag,
.encrypted_janus_anchor = enote.anchor_enc
}
});
-1
View File
@@ -78,7 +78,6 @@ namespace cryptonote
BEGIN_SERIALIZE_OBJECT()
FIELD(key)
FIELD(asset_type)
VARINT_FIELD(unlock_time)
FIELD(view_tag)
FIELD(encrypted_janus_anchor)
END_SERIALIZE()
+1 -1
View File
@@ -243,8 +243,8 @@ static std::optional<enote_view_incoming_scan_info_t> view_incoming_scan_pre_car
.payment_id = payment_id,
.subaddr_index = subaddr_index,
.amount = amount,
.asset_type = enote.asset_type,
.amount_blinding_factor = amount_blinding_factor,
.asset_type = enote.asset_type,
.main_tx_pubkey_index = main_deriv_idx
};
}