From 95114f925306eb264fe75e938e59ea6f031edb2d Mon Sep 17 00:00:00 2001 From: j-berman Date: Wed, 31 Jul 2024 23:15:08 -0700 Subject: [PATCH] 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 --- src/ringct/rctTypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index ede67f7cd..1d237c6e2 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -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::is_saving()) + fcmp_pp.resize(proof_len); if (fcmp_pp.size() != proof_len) return false; ar.serialize_blob(fcmp_pp.data(), proof_len);