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

base: fix online voting power component #638

Closed
ryuash opened this issue Jan 10, 2022 · 3 comments · Fixed by #769
Closed

base: fix online voting power component #638

ryuash opened this issue Jan 10, 2022 · 3 comments · Fixed by #769
Labels

Comments

@ryuash
Copy link
Contributor

ryuash commented Jan 10, 2022

Not always available.

image

@ryuash ryuash added the base label Jan 10, 2022
@ryuash
Copy link
Contributor Author

ryuash commented Jan 10, 2022

Update it might be slow due to this aggregation:

subscription OnlineVotingPowerListener {
  block(offset: 0, limit: 1, order_by: {height: desc}) {
    height
    validatorVotingPowersAggregate: validator_voting_powers_aggregate {
      aggregate {
        sum {
          votingPower: voting_power
        }
      }
    }
  }
}

@ryuash
Copy link
Contributor Author

ryuash commented Jan 19, 2022

Closing for now. Don't know if this is something i can fix

@ryuash ryuash closed this as completed Jan 19, 2022
@ryuash ryuash reopened this Mar 4, 2022
@ryuash
Copy link
Contributor Author

ryuash commented Mar 4, 2022

Reopening to turn this in to a poll instead of a subscription

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant