-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: support fp stats #161
base: main
Are you sure you want to change the base?
Conversation
06a8f27
to
d5cc704
Compare
@@ -34,12 +35,35 @@ func (s *V2Service) GetOverallStats(ctx context.Context) (*OverallStatsPublic, * | |||
return nil, types.NewInternalServiceError(err) | |||
} | |||
|
|||
activeStakersCount, err := s.DbClients.V2DBClient.GetActiveStakersCount(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will have performance issue when we have very big data set tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, added a todo for now and logged ticket
#165
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with some comments
def89be
to
6d749e8
Compare
This pr
Note:
re - active_finality_providers and total_finality_providers in v2/overall-stats
for now i am querying directly the finality_provider_details indexer db to get this data but ideally this should come from indexer->queues->api->stats db