@@ -123,11 +123,7 @@ export const alphaTestnetL2ChainConfig: L2ChainConfig = {
123123 /** The minimum stake for a validator. */
124124 ejectionThreshold : DefaultL1ContractsConfig . ejectionThreshold ,
125125 /** The slashing round size */
126- slashingRoundSize : 32 * 6 , // 6 epochs
127- /** The slashing quorum */
128- slashingQuorum : ( 32 * 6 ) / 2 + 1 , // 6 epochs, majority of validators
129- /** Governance proposing quorum */
130- governanceProposerQuorum : 151 ,
126+ slashingRoundSizeInEpochs : 4 ,
131127 /** Governance proposing round size */
132128 governanceProposerRoundSize : 300 ,
133129 /** The mana target for the rollup */
@@ -219,9 +215,9 @@ export async function getL2ChainConfig(
219215 return undefined ;
220216}
221217
222- function enrichVar ( envVar : EnvVar , value : string ) {
218+ function enrichVar ( envVar : EnvVar , value : string | undefined ) {
223219 // Don't override
224- if ( process . env [ envVar ] ) {
220+ if ( process . env [ envVar ] || value === undefined ) {
225221 return ;
226222 }
227223 process . env [ envVar ] = value ;
@@ -306,9 +302,9 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
306302 enrichVar ( 'AZTEC_PROOF_SUBMISSION_EPOCHS' , config . aztecProofSubmissionEpochs . toString ( ) ) ;
307303 enrichVar ( 'AZTEC_ACTIVATION_THRESHOLD' , config . activationThreshold . toString ( ) ) ;
308304 enrichVar ( 'AZTEC_EJECTION_THRESHOLD' , config . ejectionThreshold . toString ( ) ) ;
309- enrichVar ( 'AZTEC_SLASHING_QUORUM' , config . slashingQuorum . toString ( ) ) ;
310- enrichVar ( 'AZTEC_SLASHING_ROUND_SIZE ' , config . slashingRoundSize . toString ( ) ) ;
311- enrichVar ( 'AZTEC_GOVERNANCE_PROPOSER_QUORUM' , config . governanceProposerQuorum . toString ( ) ) ;
305+ enrichVar ( 'AZTEC_SLASHING_QUORUM' , config . slashingQuorum ? .toString ( ) ) ;
306+ enrichVar ( 'AZTEC_SLASHING_ROUND_SIZE_IN_EPOCHS ' , config . slashingRoundSizeInEpochs . toString ( ) ) ;
307+ enrichVar ( 'AZTEC_GOVERNANCE_PROPOSER_QUORUM' , config . governanceProposerQuorum ? .toString ( ) ) ;
312308 enrichVar ( 'AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE' , config . governanceProposerRoundSize . toString ( ) ) ;
313309 enrichVar ( 'AZTEC_MANA_TARGET' , config . manaTarget . toString ( ) ) ;
314310 enrichVar ( 'AZTEC_PROVING_COST_PER_MANA' , config . provingCostPerMana . toString ( ) ) ;
0 commit comments