Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add validium seal criteria #203

Draft
wants to merge 5 commits into
base: feat_validium_pubdata_abstraction
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl SealCriterion for PubDataBytesCriterion {
tx_data: &SealData,
protocol_version: ProtocolVersionId,
) -> SealResolution {
let max_pubdata_per_l1_batch = MAX_PUBDATA_PER_L1_BATCH as usize;
let max_pubdata_per_l1_batch = config.max_pubdata_per_batch as usize;
let reject_bound =
(max_pubdata_per_l1_batch as f64 * config.reject_tx_at_eth_params_percentage).round();
let include_and_seal_bound =
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/zk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const ROLLUP_PUBDATA_OVERHEAD_PART: number = 1.0;
export const VALIDIUM_BATCH_OVERHEAD_L1_GAS: number = 1000000;
export const ROLLUP_BATCH_OVERHEAD_L1_GAS: number = 800000;
export const VALIDIUM_MAX_PUBDATA_PER_BATCH: number = 1000000000000;
export const ROLLUP_MAX_PUBDATA_PER_BATCH: number = 100000;
export const ROLLUP_MAX_PUBDATA_PER_BATCH: number = 110000;
export const VALIDIUM_L1_GAS_PER_PUBDATA_BYTE: number = 0;
export const ROLLUP_L1_GAS_PER_PUBDATA_BYTE: number = 17;
export const VALIDIUM_L1_BATCH_COMMIT_DATA_GENERATOR_MODE: string = '"Validium"';
Expand Down
Loading