From a9fbc3973f24680f676682d15c3a4cef0a1ab798 Mon Sep 17 00:00:00 2001 From: Maxim Vezenov Date: Fri, 16 Jun 2023 17:54:06 +0100 Subject: [PATCH] fix: Revert "fix: add NUM_RESERVED_GATES before fetching subgroup size in composer" (#540) --- cpp/src/barretenberg/dsl/acir_proofs/acir_composer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpp/src/barretenberg/dsl/acir_proofs/acir_composer.cpp b/cpp/src/barretenberg/dsl/acir_proofs/acir_composer.cpp index 066de316b0..cbc5f6233f 100644 --- a/cpp/src/barretenberg/dsl/acir_proofs/acir_composer.cpp +++ b/cpp/src/barretenberg/dsl/acir_proofs/acir_composer.cpp @@ -27,8 +27,7 @@ void AcirComposer::create_circuit(acir_format::acir_format& constraint_system) exact_circuit_size_ = composer_.get_num_gates(); total_circuit_size_ = composer_.get_total_circuit_size(); - circuit_subgroup_size_ = - composer_.get_circuit_subgroup_size(total_circuit_size_ + composer_.composer_helper.NUM_RESERVED_GATES); + circuit_subgroup_size_ = composer_.get_circuit_subgroup_size(total_circuit_size_); size_hint_ = circuit_subgroup_size_; } @@ -45,8 +44,7 @@ void AcirComposer::init_proving_key(std::shared_ptr