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

Record the percent of stake held me each nonsigner #454

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

mooselumph
Copy link
Collaborator

Why are these changes needed?

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 :(

@mooselumph mooselumph requested a review from jianoaix April 6, 2024 00:12
@mooselumph mooselumph marked this pull request as ready for review April 8, 2024 21:59
@mooselumph mooselumph requested review from siddimore and ian-shim April 8, 2024 21:59
@mooselumph
Copy link
Collaborator Author

Will create a separate PR for setting the start and stop times for the query.

Copy link
Contributor

@ian-shim ian-shim left a comment

Choose a reason for hiding this comment

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

disperser/dataapi/nonsigner_handler.go Outdated Show resolved Hide resolved
nonsignerMetric := OperatorNonsigningPercentageMetrics{
OperatorId: fmt.Sprintf("0x%s", op),
OperatorAddress: nonsignerIdToAddress[op],
QuorumId: q,
TotalUnsignedBatches: unsignedCount,
TotalBatches: totalCount,
Percentage: pf,
StakePercentage: stakePercentage,
Copy link
Contributor

Choose a reason for hiding this comment

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

If this field is 0, it indicates the operator is no longer in the active set at block endBlock?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's the correct interpretation.

@mooselumph mooselumph force-pushed the return-stake-w-nonsigners branch from e0faf3e to b435139 Compare April 9, 2024 20:16
@mooselumph mooselumph merged commit 64b311b 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.

3 participants