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); }; -}; +