Use state by root to get finalized state (#7677)

This commit is contained in:
terence tsao 2020-10-29 12:04:06 -07:00 committed by GitHub
parent 2e4dee5aeb
commit fb2dfec1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}