Utilize Read Only Head State (#11932)

This commit is contained in:
Nishant Das
2023-01-31 19:41:53 +01:00
committed by GitHub
parent 847835534d
commit 3f67818a65
5 changed files with 81 additions and 1 deletions

View File

@@ -284,6 +284,11 @@ func (s *ChainService) HeadState(context.Context) (state.BeaconState, error) {
return s.State, nil
}
// HeadStateReadOnly mocks HeadStateReadOnly method in chain service.
func (s *ChainService) HeadStateReadOnly(context.Context) (state.ReadOnlyBeaconState, error) {
return s.State, nil
}
// CurrentFork mocks HeadState method in chain service.
func (s *ChainService) CurrentFork() *ethpb.Fork {
return s.Fork