lodestar
lodestar copied to clipboard
Standardize fork param in the codebase
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