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

Commit

Permalink
chores: cleaup log
Browse files Browse the repository at this point in the history
  • Loading branch information
hero78119 committed Mar 1, 2024
1 parent a7e3610 commit e932d11
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 59 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ jobs:
sudo chmod +x /usr/bin/solc
- name: Update ERC20 git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: Run root test
uses: actions-rs/cargo@v1
with:
command: test
args: --package zkevm-circuits --lib -- root_circuit::test::test_root_circuit_multiple_chunk --exact --ignored
- name: Run heavy tests # heavy tests are run serially to avoid OOM
uses: actions-rs/cargo@v1
with:
Expand Down
14 changes: 0 additions & 14 deletions zkevm-circuits/src/evm_circuit/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,13 +1443,6 @@ impl<F: Field> ExecutionConfig<F> {
step,
call
);
// println!(
// "assign_exec_step offset: {} state {:?} step: {:?} call: {:?}",
// offset,
// step.execution_state(),
// step,
// call
// );
}
// Make the region large enough for the current step and the next step.
// The next step's next step may also be accessed, so make the region large
Expand All @@ -1467,13 +1460,6 @@ impl<F: Field> ExecutionConfig<F> {
// so their witness values need to be known to be able
// to correctly calculate the intermediate value.
if let Some(next_step) = next_step {
// println!(
// "assign_exec_step nextstep offset: {} state {:?} step: {:?} call: {:?}",
// offset,
// next_step.2.execution_state(),
// next_step.2,
// next_step.1
// );
self.assign_exec_step_int(
region,
offset + height,
Expand Down
5 changes: 0 additions & 5 deletions zkevm-circuits/src/evm_circuit/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,6 @@ impl<F: Field> Step<F> {
offset,
Value::known(F::from(step.rwc_inner_chunk.into())),
)?;
// println!(
// "execstate {:?} self.state.call_id {:?}",
// step.execution_state(),
// F::from(call.call_id as u64)
// );
self.state
.call_id
.assign(region, offset, Value::known(F::from(call.call_id as u64)))?;
Expand Down
11 changes: 0 additions & 11 deletions zkevm-circuits/src/state_circuit/lexicographic_ordering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ pub struct Config {
pub(crate) selector: Column<Fixed>,
pub first_different_limb: BinaryNumberConfig<LimbIndex, 5>,
limb_difference: Column<Advice>,
// limb_difference_inverse: Column<Advice>,
}

impl Config {
Expand All @@ -112,27 +111,17 @@ impl Config {
let selector = meta.fixed_column();
let first_different_limb = BinaryNumberChip::configure(meta, selector, None);
let limb_difference = meta.advice_column();
// let limb_difference_inverse = meta.advice_column();

let config = Config {
selector,
first_different_limb,
limb_difference,
// limb_difference_inverse,
};

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

// meta.create_gate("limb_difference is not zero", |meta| {
// let selector = meta.query_fixed(selector, Rotation::cur());
// let limb_difference = meta.query_advice(limb_difference, Rotation::cur());
// let limb_difference_inverse =
// meta.query_advice(limb_difference_inverse, Rotation::cur());
// vec![selector * (1.expr() - limb_difference * limb_difference_inverse)]
// });

meta.create_gate(
"limb differences before first_different_limb are all 0",
|meta| {
Expand Down
46 changes: 22 additions & 24 deletions zkevm-circuits/src/table/rw_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,30 +89,28 @@ impl RwTable {
/// Construct a new RwTable
pub fn construct<F: Field>(meta: &mut ConstraintSystem<F>) -> Self {
Self {
// TODO upgrade halo2 to use `unblinded_advice_column`
// https://github.com/privacy-scaling-explorations/halo2/blob/main/halo2_proofs/examples/vector-ops-unblinded.rs
// rw_counter: meta.unblinded_advice_column(),
// is_write: meta.unblinded_advice_column(),
// tag: meta.unblinded_advice_column(),
// id: meta.unblinded_advice_column(),
// address: meta.unblinded_advice_column(),
// field_tag: meta.unblinded_advice_column(),
// storage_key: word::Word::new([meta.unblinded_advice_column(),
// meta.unblinded_advice_column()]), value: word::Word::new([meta.
// unblinded_advice_column(), meta.unblinded_advice_column()]), value_prev:
// word::Word::new([meta.unblinded_advice_column(), meta.unblinded_advice_column()]),
// init_val: word::Word::new([meta.unblinded_advice_column(),
// meta.unblinded_advice_column()]),
rw_counter: meta.advice_column(),
is_write: meta.advice_column(),
tag: meta.advice_column(),
id: meta.advice_column(),
address: meta.advice_column(),
field_tag: meta.advice_column(),
storage_key: word::Word::new([meta.advice_column(), meta.advice_column()]),
value: word::Word::new([meta.advice_column(), meta.advice_column()]),
value_prev: word::Word::new([meta.advice_column(), meta.advice_column()]),
init_val: word::Word::new([meta.advice_column(), meta.advice_column()]),
rw_counter: meta.unblinded_advice_column(),
is_write: meta.unblinded_advice_column(),
tag: meta.unblinded_advice_column(),
id: meta.unblinded_advice_column(),
address: meta.unblinded_advice_column(),
field_tag: meta.unblinded_advice_column(),
storage_key: word::Word::new([
meta.unblinded_advice_column(),
meta.unblinded_advice_column(),
]),
value: word::Word::new([
meta.unblinded_advice_column(),
meta.unblinded_advice_column(),
]),
value_prev: word::Word::new([
meta.unblinded_advice_column(),
meta.unblinded_advice_column(),
]),
init_val: word::Word::new([
meta.unblinded_advice_column(),
meta.unblinded_advice_column(),
]),
}
}
fn assign<F: Field>(
Expand Down

0 comments on commit e932d11

Please sign in to comment.