From e4bc98209d0ce7e9ee5e326e205f1d939bac6b2b Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 27 Oct 2022 00:50:45 +0200 Subject: [PATCH] minor fixes --- src/crypto/range_proofs.h | 4 ++-- tests/core_tests/zarcanum_test.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/range_proofs.h b/src/crypto/range_proofs.h index 56213fcc..4e25ed79 100644 --- a/src/crypto/range_proofs.h +++ b/src/crypto/range_proofs.h @@ -144,8 +144,8 @@ namespace crypto template bool multiexp_and_check_being_zero(const scalar_vec_t& g_scalars, const scalar_vec_t& h_scalars, const point_t& summand) { - CHECK_AND_ASSERT_MES(g_scalars.size() < CT::c_bpp_mn_max, false, "g_scalars oversized"); - CHECK_AND_ASSERT_MES(h_scalars.size() < CT::c_bpp_mn_max, false, "h_scalars oversized"); + CHECK_AND_ASSERT_MES(g_scalars.size() <= CT::c_bpp_mn_max, false, "g_scalars oversized"); + CHECK_AND_ASSERT_MES(h_scalars.size() <= CT::c_bpp_mn_max, false, "h_scalars oversized"); point_t result = summand; diff --git a/tests/core_tests/zarcanum_test.h b/tests/core_tests/zarcanum_test.h index 33f5ab0c..56e025f1 100644 --- a/tests/core_tests/zarcanum_test.h +++ b/tests/core_tests/zarcanum_test.h @@ -26,4 +26,4 @@ struct zarcanum_pos_block_math : public wallet_test bool generate(std::vector& events) const; bool c1(currency::core& c, size_t ev_index, const std::vector& events); }; -}; +