@@ -45,6 +45,7 @@ export interface EpochCacheInterface {
4545 getRegisteredValidators ( ) : Promise < EthAddress [ ] > ;
4646 isInCommittee ( slot : SlotTag , validator : EthAddress ) : Promise < boolean > ;
4747 filterInCommittee ( slot : SlotTag , validators : EthAddress [ ] ) : Promise < EthAddress [ ] > ;
48+ getL1Constants ( ) : L1RollupConstants ;
4849}
4950
5051/**
@@ -106,6 +107,7 @@ export class EpochCache implements EpochCacheInterface {
106107 epochDuration ,
107108 lagInEpochsForValidatorSet ,
108109 lagInEpochsForRandao ,
110+ targetCommitteeSize ,
109111 ] = await Promise . all ( [
110112 rollup . getL1StartBlock ( ) ,
111113 rollup . getL1GenesisTime ( ) ,
@@ -114,6 +116,7 @@ export class EpochCache implements EpochCacheInterface {
114116 rollup . getEpochDuration ( ) ,
115117 rollup . getLagInEpochsForValidatorSet ( ) ,
116118 rollup . getLagInEpochsForRandao ( ) ,
119+ rollup . getTargetCommitteeSize ( ) ,
117120 ] as const ) ;
118121
119122 const l1RollupConstants = {
@@ -125,6 +128,7 @@ export class EpochCache implements EpochCacheInterface {
125128 ethereumSlotDuration : config . ethereumSlotDuration ,
126129 lagInEpochsForValidatorSet : Number ( lagInEpochsForValidatorSet ) ,
127130 lagInEpochsForRandao : Number ( lagInEpochsForRandao ) ,
131+ targetCommitteeSize : Number ( targetCommitteeSize ) ,
128132 } ;
129133
130134 return new EpochCache ( rollup , l1RollupConstants , deps . dateProvider ) ;
0 commit comments