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

Fail v2 blobs for no attestations #1043

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

If a blob receives no attestation for any of its target quorums, update status as INSUFFICIENT_SIGNATURES

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

@ian-shim ian-shim marked this pull request as ready for review December 19, 2024 21:46
}

if failed {
err := d.blobMetadataStore.UpdateBlobStatus(ctx, blobKey, v2.INSUFFICIENT_SIGNATURES)
Copy link
Contributor

@dmanc dmanc Dec 19, 2024

Choose a reason for hiding this comment

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

So right now the insufficient signature state is for when a quorum has no attestations? Would we ever use that state for doing something like a quorum only recieved X% signatures?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah
We can improve this by either considering the coding rate or the default confirmation threshold onchain, but this is a quick fix before further steps

"testing"
"time"

"github.com/prometheus/client_golang/prometheus"

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove newline

@ian-shim ian-shim force-pushed the fail-blobs-if-no-attestation branch 2 times, most recently from 3739bfb to f981ee4 Compare December 19, 2024 22:04
@ian-shim ian-shim force-pushed the fail-blobs-if-no-attestation branch from f981ee4 to 8b28e2b Compare December 19, 2024 22:36
@ian-shim ian-shim merged commit 449e992 into Layr-Labs:master Dec 19, 2024
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