mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
Minor fixes
This commit is contained in:
parent
522cac5e15
commit
74cb9074d6
@ -1,7 +1,5 @@
|
||||
use std::io::Read;
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use itertools::Itertools;
|
||||
use plonky2::field::extension::{Extendable, FieldExtension};
|
||||
use plonky2::field::packed::PackedField;
|
||||
use plonky2::field::polynomial::PolynomialValues;
|
||||
@ -130,7 +128,7 @@ impl<F: RichField + Extendable<D>, const D: usize> KeccakMemoryStark<F, D> {
|
||||
operations: Vec<KeccakMemoryOp>,
|
||||
min_rows: usize,
|
||||
) -> Vec<[F; NUM_COLUMNS]> {
|
||||
let num_rows = operations.len().max(32).next_power_of_two();
|
||||
let num_rows = operations.len().max(min_rows).next_power_of_two();
|
||||
let mut rows = Vec::with_capacity(num_rows);
|
||||
for op in operations {
|
||||
rows.push(self.generate_row_for_op(op));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user