Merge pull request #9244

31a7f12 ringct: fix trunc_amount field name change (jeffro256)
This commit is contained in:
luigi1111 2024-03-12 12:46:10 -04:00
commit 81d4db08eb
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -374,7 +374,7 @@ namespace rct {
memset(ecdhInfo[i].amount.bytes, 0, sizeof(ecdhInfo[i].amount.bytes));
else // saving
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
memcpy(ecdhInfo[i].amount.bytes, trunc_amount.data, sizeof(trunc_amount));
ar.end_object();