lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Standardize fork param in the codebase

Open ensi321 opened this issue 1 year ago • 0 comments

          a lot of our code has new "fork" param and it caused a lot of files changed, we can just get the config from state and determine the fork based on state.slot

the good thing is we don't have to keep computing fork in different functions if we pass fork param I think we can store fork inside the CachedBeaconState so that we don't have to pass fork param around or keep recomputing it in different functions

Originally posted by @twoeths in https://github.com/ChainSafe/lodestar/pull/6764#discussion_r1598985539

ensi321 avatar May 14 '24 06:05 ensi321