Skip to content

Commit

Permalink
add the computed state to the checkpoint cache
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Mar 16, 2024
1 parent 5635f9b commit 0ddbdfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beacon-chain/blockchain/process_attestation_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func (s *Service) getRecentPreState(ctx context.Context, c *ethpb.Checkpoint) st
if err != nil {
return nil
}
if err := s.checkpointStateCache.AddCheckpointState(c, st); err != nil {
return nil
}
return st
}

Expand Down

0 comments on commit 0ddbdfe

Please sign in to comment.