Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit e932d11

Browse files
committed
chores: cleaup log
1 parent a7e3610 commit e932d11

File tree

5 files changed

+22
-59
lines changed

5 files changed

+22
-59
lines changed

.github/workflows/main-tests.yml

-5
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ jobs:
133133
sudo chmod +x /usr/bin/solc
134134
- name: Update ERC20 git submodule
135135
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
136-
- name: Run root test
137-
uses: actions-rs/cargo@v1
138-
with:
139-
command: test
140-
args: --package zkevm-circuits --lib -- root_circuit::test::test_root_circuit_multiple_chunk --exact --ignored
141136
- name: Run heavy tests # heavy tests are run serially to avoid OOM
142137
uses: actions-rs/cargo@v1
143138
with:

zkevm-circuits/src/evm_circuit/execution.rs

-14
Original file line numberDiff line numberDiff line change
@@ -1443,13 +1443,6 @@ impl<F: Field> ExecutionConfig<F> {
14431443
step,
14441444
call
14451445
);
1446-
// println!(
1447-
// "assign_exec_step offset: {} state {:?} step: {:?} call: {:?}",
1448-
// offset,
1449-
// step.execution_state(),
1450-
// step,
1451-
// call
1452-
// );
14531446
}
14541447
// Make the region large enough for the current step and the next step.
14551448
// The next step's next step may also be accessed, so make the region large
@@ -1467,13 +1460,6 @@ impl<F: Field> ExecutionConfig<F> {
14671460
// so their witness values need to be known to be able
14681461
// to correctly calculate the intermediate value.
14691462
if let Some(next_step) = next_step {
1470-
// println!(
1471-
// "assign_exec_step nextstep offset: {} state {:?} step: {:?} call: {:?}",
1472-
// offset,
1473-
// next_step.2.execution_state(),
1474-
// next_step.2,
1475-
// next_step.1
1476-
// );
14771463
self.assign_exec_step_int(
14781464
region,
14791465
offset + height,

zkevm-circuits/src/evm_circuit/step.rs

-5
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,6 @@ impl<F: Field> Step<F> {
850850
offset,
851851
Value::known(F::from(step.rwc_inner_chunk.into())),
852852
)?;
853-
// println!(
854-
// "execstate {:?} self.state.call_id {:?}",
855-
// step.execution_state(),
856-
// F::from(call.call_id as u64)
857-
// );
858853
self.state
859854
.call_id
860855
.assign(region, offset, Value::known(F::from(call.call_id as u64)))?;

zkevm-circuits/src/state_circuit/lexicographic_ordering.rs

-11
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ pub struct Config {
9999
pub(crate) selector: Column<Fixed>,
100100
pub first_different_limb: BinaryNumberConfig<LimbIndex, 5>,
101101
limb_difference: Column<Advice>,
102-
// limb_difference_inverse: Column<Advice>,
103102
}
104103

105104
impl Config {
@@ -112,27 +111,17 @@ impl Config {
112111
let selector = meta.fixed_column();
113112
let first_different_limb = BinaryNumberChip::configure(meta, selector, None);
114113
let limb_difference = meta.advice_column();
115-
// let limb_difference_inverse = meta.advice_column();
116114

117115
let config = Config {
118116
selector,
119117
first_different_limb,
120118
limb_difference,
121-
// limb_difference_inverse,
122119
};
123120

124121
lookup.range_check_u16(meta, "limb_difference fits into u16", |meta| {
125122
meta.query_advice(limb_difference, Rotation::cur())
126123
});
127124

128-
// meta.create_gate("limb_difference is not zero", |meta| {
129-
// let selector = meta.query_fixed(selector, Rotation::cur());
130-
// let limb_difference = meta.query_advice(limb_difference, Rotation::cur());
131-
// let limb_difference_inverse =
132-
// meta.query_advice(limb_difference_inverse, Rotation::cur());
133-
// vec![selector * (1.expr() - limb_difference * limb_difference_inverse)]
134-
// });
135-
136125
meta.create_gate(
137126
"limb differences before first_different_limb are all 0",
138127
|meta| {

zkevm-circuits/src/table/rw_table.rs

+22-24
Original file line numberDiff line numberDiff line change
@@ -89,30 +89,28 @@ impl RwTable {
8989
/// Construct a new RwTable
9090
pub fn construct<F: Field>(meta: &mut ConstraintSystem<F>) -> Self {
9191
Self {
92-
// TODO upgrade halo2 to use `unblinded_advice_column`
93-
// https://github.com/privacy-scaling-explorations/halo2/blob/main/halo2_proofs/examples/vector-ops-unblinded.rs
94-
// rw_counter: meta.unblinded_advice_column(),
95-
// is_write: meta.unblinded_advice_column(),
96-
// tag: meta.unblinded_advice_column(),
97-
// id: meta.unblinded_advice_column(),
98-
// address: meta.unblinded_advice_column(),
99-
// field_tag: meta.unblinded_advice_column(),
100-
// storage_key: word::Word::new([meta.unblinded_advice_column(),
101-
// meta.unblinded_advice_column()]), value: word::Word::new([meta.
102-
// unblinded_advice_column(), meta.unblinded_advice_column()]), value_prev:
103-
// word::Word::new([meta.unblinded_advice_column(), meta.unblinded_advice_column()]),
104-
// init_val: word::Word::new([meta.unblinded_advice_column(),
105-
// meta.unblinded_advice_column()]),
106-
rw_counter: meta.advice_column(),
107-
is_write: meta.advice_column(),
108-
tag: meta.advice_column(),
109-
id: meta.advice_column(),
110-
address: meta.advice_column(),
111-
field_tag: meta.advice_column(),
112-
storage_key: word::Word::new([meta.advice_column(), meta.advice_column()]),
113-
value: word::Word::new([meta.advice_column(), meta.advice_column()]),
114-
value_prev: word::Word::new([meta.advice_column(), meta.advice_column()]),
115-
init_val: word::Word::new([meta.advice_column(), meta.advice_column()]),
92+
rw_counter: meta.unblinded_advice_column(),
93+
is_write: meta.unblinded_advice_column(),
94+
tag: meta.unblinded_advice_column(),
95+
id: meta.unblinded_advice_column(),
96+
address: meta.unblinded_advice_column(),
97+
field_tag: meta.unblinded_advice_column(),
98+
storage_key: word::Word::new([
99+
meta.unblinded_advice_column(),
100+
meta.unblinded_advice_column(),
101+
]),
102+
value: word::Word::new([
103+
meta.unblinded_advice_column(),
104+
meta.unblinded_advice_column(),
105+
]),
106+
value_prev: word::Word::new([
107+
meta.unblinded_advice_column(),
108+
meta.unblinded_advice_column(),
109+
]),
110+
init_val: word::Word::new([
111+
meta.unblinded_advice_column(),
112+
meta.unblinded_advice_column(),
113+
]),
116114
}
117115
}
118116
fn assign<F: Field>(

0 commit comments

Comments
 (0)