Use explicit code instead of macro in custom fcmp_pp serialization

It's slightly different than other usages of the macro, so figured
it makes sense to just write out the code to do what I expect it
to do
This commit is contained in:
j-berman 2024-07-31 23:15:08 -07:00
parent e40c5bb0fc
commit 95114f9253

View File

@ -504,7 +504,8 @@ namespace rct {
ar.tag("fcmp_pp");
ar.begin_object();
const std::size_t proof_len = fcmp::get_fcmp_pp_len_from_n_inputs(inputs);
PREPARE_CUSTOM_VECTOR_SERIALIZATION(proof_len, fcmp_pp);
if (!typename Archive<W>::is_saving())
fcmp_pp.resize(proof_len);
if (fcmp_pp.size() != proof_len)
return false;
ar.serialize_blob(fcmp_pp.data(), proof_len);