Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit fedf661

Browse files
authored
fix degree pow of rand table in agg circuit (#1335)
* fix degree pow of rand table in agg circuit * change some log level from info to debug
1 parent 4c4d117 commit fedf661

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

aggregator/src/aggregation/circuit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{blob::BatchData, witgen::MultiBlockProcessResult};
1+
use crate::{blob::BatchData, witgen::MultiBlockProcessResult, LOG_DEGREE};
22
use ark_std::{end_timer, start_timer};
33
use halo2_base::{Context, ContextParams};
44
use halo2_proofs::{
@@ -489,7 +489,7 @@ impl<const N_SNARKS: usize> Circuit<Fr> for AggregationCircuit<N_SNARKS> {
489489
address_table_arr,
490490
sequence_exec_info_arr,
491491
&challenges,
492-
20, // TODO: configure k for aggregation circuit instead of hard-coded here.
492+
LOG_DEGREE, // TODO: configure k for aggregation circuit instead of hard-coded here.
493493
)?;
494494

495495
layouter.assign_region(

aggregator/src/core.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ impl<const N_SNARKS: usize> ExtractedHashCells<N_SNARKS> {
299299
.zip_eq(self.output_rlcs.iter())
300300
.enumerate()
301301
{
302-
log::info!(
302+
log::debug!(
303303
"{}-th rlc {:?} {:?}",
304304
i,
305305
input_rlcs.value(),
@@ -714,11 +714,11 @@ pub(crate) fn conditional_constraints<const N_SNARKS: usize>(
714714
&mut offset,
715715
)?;
716716

717-
log::info!(
717+
log::debug!(
718718
"batch data hash rlc recomputed: {:?}",
719719
batch_data_hash_rlc.value()
720720
);
721-
log::info!(
721+
log::debug!(
722722
"batch data hash rlc from table: {:?}",
723723
assigned_hash_cells.output_rlcs[N_SNARKS + 1].value()
724724
);
@@ -769,11 +769,11 @@ pub(crate) fn conditional_constraints<const N_SNARKS: usize>(
769769
assigned_hash_cells.input_rlcs[N_SNARKS + 1].cell(),
770770
)?;
771771

772-
log::info!(
772+
log::debug!(
773773
"batch data hash rlc reconstructed: {:?}",
774774
batch_data_hash_reconstructed_rlc.value()
775775
);
776-
log::info!(
776+
log::debug!(
777777
"batch data hash rlc from table: {:?}",
778778
assigned_hash_cells.input_rlcs[N_SNARKS + 1].value()
779779
);

zkevm-circuits/src/table.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,8 @@ impl PowOfRandTable {
31353135
)?;
31363136
}
31373137

3138+
log::debug!("assign pow of rand with rows {} done", max_rows);
3139+
31383140
Ok(())
31393141
},
31403142
)

0 commit comments

Comments
 (0)