Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a proof of concept. Ideally we should have a single query that returns all actors. #266

Open
github-actions bot opened this issue Jan 12, 2023 · 0 comments

Comments

@github-actions
Copy link

pocket/persistence/actor.go

Lines 128 to 133 in d552ec6

// IMPROVE: This is a proof of concept. Ideally we should have a single query that returns all actors.
func (p PostgresContext) GetAllStakedActors(height int64) (allActors []*coreTypes.Actor, err error) {
type actorGetter func(height int64) ([]*coreTypes.Actor, error)
actorGetters := []actorGetter{p.GetAllValidators, p.GetAllServiceNodes, p.GetAllFishermen, p.GetAllApps}
for _, actorGetter := range actorGetters {
var actors []*coreTypes.Actor


This issue was generated by todo-issue based on a IMPROVE comment in d552ec6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants