-
Notifications
You must be signed in to change notification settings - Fork 191
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
Record the percent of stake held me each nonsigner #454
Conversation
Will create a separate PR for setting the start and stop times for the query. |
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.
lgtm, I think we can add a test in https://github.com/Layr-Labs/eigenda/blob/master/disperser/dataapi/server_test.go#L316
nonsignerMetric := OperatorNonsigningPercentageMetrics{ | ||
OperatorId: fmt.Sprintf("0x%s", op), | ||
OperatorAddress: nonsignerIdToAddress[op], | ||
QuorumId: q, | ||
TotalUnsignedBatches: unsignedCount, | ||
TotalBatches: totalCount, | ||
Percentage: pf, | ||
StakePercentage: stakePercentage, |
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.
If this field is 0, it indicates the operator is no longer in the active set at block endBlock?
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.
Yes, that's the correct interpretation.
e0faf3e
to
b435139
Compare
Why are these changes needed?
Checks