mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
Use state by root to get finalized state (#7677)
This commit is contained in:
parent
2e4dee5aeb
commit
fb2dfec1f4
@ -78,7 +78,7 @@ func (s *State) Resume(ctx context.Context) (*state.BeaconState, error) {
|
||||
if fRoot == params.BeaconConfig().ZeroHash {
|
||||
return s.beaconDB.GenesisState(ctx)
|
||||
}
|
||||
fState, err := s.beaconDB.State(ctx, fRoot)
|
||||
fState, err := s.StateByRoot(ctx, fRoot)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user