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

Query non-signers between start and stop times. #464

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

mooselumph
Copy link
Contributor

Why are these changes needed?

Allows for investigation of non-signer statistics over arbitrary intervals.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@@ -645,12 +660,16 @@ const docTemplate = `{
},
"total_stake": {
"description": "deprecated: use TotalStakePerQuorum instead. Remove when the frontend is updated.",
"type": "integer"
"allOf": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what happened here. Perhaps I'm using a different version of swaggo?

@@ -465,7 +465,9 @@ func (s *server) FetchNonSigners(c *gin.Context) {
// @Summary Fetch operators non signing percentage
// @Tags Metrics
// @Produce json
// @Param interval query int false "Interval to query for operators nonsigning percentage [default: 3600]"
// @Param interval query int false "Interval to query for operators nonsigning percentage [default: 3600]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be simpler to just have 2 params: endtime and interval. When endtime is missing, set it to time.Now(). Then it'll be also be backward compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems like a good suggestion. I'll go ahead and update.

@mooselumph mooselumph merged commit e201a18 into Layr-Labs:master Apr 10, 2024
5 checks passed
bxue-l2 pushed a commit to bxue-l2/eigenda that referenced this pull request Apr 11, 2024
bxue-l2 pushed a commit to bxue-l2/eigenda that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants