fixing Origin block root is not set error log (#15808)

* fixing error log

* kasey's suggestion

* kasey's feedback replacing comment
This commit is contained in:
james-prysm
2025-10-06 10:47:27 -05:00
committed by GitHub
parent 4f9e56fc70
commit aabded250f
3 changed files with 54 additions and 1 deletions

View File

@@ -954,7 +954,9 @@ func (s *Store) CleanUpDirtyStates(ctx context.Context, slotsPerArchivedPoint pr
deletedRoots := make([][32]byte, 0)
oRoot, err := s.OriginCheckpointBlockRoot(ctx)
if err != nil {
if err != nil && !errors.Is(err, ErrNotFoundOriginBlockRoot) {
// If the node did not use checkpoint sync, there will be no origin block root.
// Use zero hash which will never match any actual state root
return err
}