package sync import ( "github.com/ledgerwatch/erigon/polygon/heimdall" ) func statePointsFromCheckpoints(checkpoints []*heimdall.Checkpoint) statePoints { statePoints := make(statePoints, len(checkpoints)) for i, checkpoint := range checkpoints { statePoints[i] = statePointFromCheckpoint(checkpoint) } return statePoints } func statePointsFromMilestones(milestones []*heimdall.Milestone) statePoints { statePoints := make(statePoints, len(milestones)) for i, milestone := range milestones { statePoints[i] = statePointFromMilestone(milestone) } return statePoints } type statePoints []*statePoint