@@ -22,15 +22,21 @@ export type EpochTransitionFn = (state: CachedBeaconStateAllForks, epochTransiti
22
22
/* eslint-disable @typescript-eslint/naming-convention */
23
23
24
24
const epochTransitionFns : Record < string , EpochTransitionFn > = {
25
- effective_balance_updates : epochFns . processEffectiveBalanceUpdates ,
25
+ effective_balance_updates : ( state , epochTransitionCache ) => {
26
+ const fork = state . config . getForkSeq ( state . slot ) ;
27
+ epochFns . processEffectiveBalanceUpdates ( fork , state , epochTransitionCache ) ;
28
+ } ,
26
29
eth1_data_reset : epochFns . processEth1DataReset ,
27
30
historical_roots_update : epochFns . processHistoricalRootsUpdate ,
28
31
inactivity_updates : epochFns . processInactivityUpdates as EpochTransitionFn ,
29
32
justification_and_finalization : epochFns . processJustificationAndFinalization ,
30
33
participation_flag_updates : epochFns . processParticipationFlagUpdates as EpochTransitionFn ,
31
34
participation_record_updates : epochFns . processParticipationRecordUpdates as EpochTransitionFn ,
32
35
randao_mixes_reset : epochFns . processRandaoMixesReset ,
33
- registry_updates : epochFns . processRegistryUpdates ,
36
+ registry_updates : ( state , epochTransitionCache ) => {
37
+ const fork = state . config . getForkSeq ( state . slot ) ;
38
+ epochFns . processRegistryUpdates ( fork , state , epochTransitionCache ) ;
39
+ } ,
34
40
rewards_and_penalties : epochFns . processRewardsAndPenalties ,
35
41
slashings : epochFns . processSlashings ,
36
42
slashings_reset : epochFns . processSlashingsReset ,
0 commit comments