diff --git a/infrastructure/zk/src/constants.ts b/infrastructure/zk/src/constants.ts index bbe6404a6a3..43fd180b5c4 100644 --- a/infrastructure/zk/src/constants.ts +++ b/infrastructure/zk/src/constants.ts @@ -1,3 +1,5 @@ +export const VALIDIUM_COMPUTE_OVERHEAD_PART: number = 1.0; +export const ROLLUP_COMPUTE_OVERHEAD_PART: number = 0.0; export const VALIDIUM_PUBDATA_OVERHEAD_PART: number = 0.0; export const ROLLUP_PUBDATA_OVERHEAD_PART: number = 1.0; export const VALIDIUM_BATCH_OVERHEAD_L1_GAS: number = 1000000; diff --git a/infrastructure/zk/src/init.ts b/infrastructure/zk/src/init.ts index 5201a7994bf..693d7409600 100644 --- a/infrastructure/zk/src/init.ts +++ b/infrastructure/zk/src/init.ts @@ -165,6 +165,9 @@ function updateConfigFile(path: string, modeConstantValues: any) { } function updateChainConfig(validiumMode: boolean) { const modeConstantValues = { + compute_overhead_part: validiumMode + ? constants.VALIDIUM_COMPUTE_OVERHEAD_PART + : constants.ROLLUP_COMPUTE_OVERHEAD_PART, pubdata_overhead_part: validiumMode ? constants.VALIDIUM_PUBDATA_OVERHEAD_PART : constants.ROLLUP_PUBDATA_OVERHEAD_PART,