use read only head state (#13014)

This commit is contained in:
Nishant Das
2023-10-08 03:44:52 +08:00
committed by GitHub
parent 44973b0bb3
commit da6ae3c204

View File

@@ -50,7 +50,7 @@ func (s *Service) validateVoluntaryExit(ctx context.Context, pid peer.ID, msg *p
return pubsub.ValidationIgnore, nil
}
headState, err := s.cfg.chain.HeadState(ctx)
headState, err := s.cfg.chain.HeadStateReadOnly(ctx)
if err != nil {
return pubsub.ValidationIgnore, err
}