mirror of
https://github.com/monero-project/monero.git
synced 2025-01-07 09:57:53 -05:00
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:
parent
e40c5bb0fc
commit
95114f9253
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user