ringct: fix trunc_amount field name change

Caused in commit 05231400cebfeedbbc0a5386f38a033bba6314b3, PR #9035.
dev-v0.11.2
jeffro256 1 month ago committed by wowario
parent eeec04520d
commit cb63c922f8
Signed by: wowario
GPG Key ID: 793504B449C69220

@ -378,7 +378,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();

Loading…
Cancel
Save