From 548265310a9ca80c4473003ff9c1ead4cdf8cf48 Mon Sep 17 00:00:00 2001 From: gogoex <110195520+gogoex@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:27:49 +0900 Subject: [PATCH] use const reference for rp --- src/blsct/external_api/blsct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blsct/external_api/blsct.cpp b/src/blsct/external_api/blsct.cpp index 68687761432d1..62be35bf12dc4 100644 --- a/src/blsct/external_api/blsct.cpp +++ b/src/blsct/external_api/blsct.cpp @@ -408,7 +408,7 @@ BlsctBoolRetVal* verify_range_proofs( std::vector> range_proof_w_seeds; - for(auto rp: *range_proofs) { + for(const auto& rp: *range_proofs) { auto rp_w_seed = bulletproofs::RangeProofWithSeed(rp); range_proof_w_seeds.push_back(rp_w_seed); }