ringct: fix trunc_amount field name change

Caused in commit 05231400ce, PR #9035.
This commit is contained in:
jeffro256 2024-03-11 20:21:18 -05:00
parent 1bec71279e
commit c4e1c5a640
No known key found for this signature in database
GPG key ID: 6F79797A6E392442

View file

@ -374,7 +374,7 @@ namespace rct {
memset(ecdhInfo[i].amount.bytes, 0, sizeof(ecdhInfo[i].amount.bytes)); memset(ecdhInfo[i].amount.bytes, 0, sizeof(ecdhInfo[i].amount.bytes));
else // saving else // saving
memcpy(trunc_amount.data, ecdhInfo[i].amount.bytes, sizeof(trunc_amount)); memcpy(trunc_amount.data, ecdhInfo[i].amount.bytes, sizeof(trunc_amount));
FIELD(trunc_amount); FIELD_N("amount", trunc_amount);
if (!typename Archive<W>::is_saving()) // loading if (!typename Archive<W>::is_saving()) // loading
memcpy(ecdhInfo[i].amount.bytes, trunc_amount.data, sizeof(trunc_amount)); memcpy(ecdhInfo[i].amount.bytes, trunc_amount.data, sizeof(trunc_amount));
ar.end_object(); ar.end_object();