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

Operator signing computing #1206

Merged
merged 6 commits into from
Feb 4, 2025
Merged

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Feb 3, 2025

Why are these changes needed?

To support the signing info API for operators.

This should be the last PR following the refactoring to make it functional.

Checks

  • 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.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

disperser/dataapi/v2/server_v2.go Outdated Show resolved Hide resolved
}
}

startTime := endTime.Add(-time.Duration(interval) * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add to the documentation that the API can only compute the signing info within the 14 day period (maxBlobAge)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a system wide constraint (no data is guaranteed after 14 days), not anything special

Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to make sure it's clear to the consumer of the Data API that they shouldn't expect to be able to query beyond the 14 days. Some may be interested in historical signing rate beyond the 14 days.

disperser/dataapi/v2/server_v2.go Outdated Show resolved Hide resolved
disperser/dataapi/v2/server_v2.go Show resolved Hide resolved
@jianoaix jianoaix merged commit cd790e8 into Layr-Labs:master Feb 4, 2025
8 checks passed
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.

2 participants