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

feat(shwap): Update availability to work with shwap #3600

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

walldiss
Copy link
Member

Updates Availability and related tests to be aligned with shwap underlying getter

Blocked by #3554

@walldiss walldiss added kind:feat Attached to feature PRs shwap labels Jul 25, 2024
@walldiss walldiss self-assigned this Jul 25, 2024
@walldiss walldiss changed the base branch from main to shwap July 25, 2024 23:03
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

Few comments, LFG, otherwise

@@ -183,10 +183,10 @@ func (g *Getter) GetSharesByNamespace(
}

// TODO(@Wondertan): this must use shwap types eventually
Copy link
Member

Choose a reason for hiding this comment

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

Can remove it as it does that with this PR.

if share.DataHash(dah.Hash()).IsEmptyEDS() {
fa.store.Put(ctx, dah, header.Height(), share.EmptyEDS())
Copy link
Member

Choose a reason for hiding this comment

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

should still check for an error

// TestShareAvailable_OneFullNode asserts that a full node can ensure
// data is available (reconstruct data square) while being connected to
// light nodes only.
func TestShareAvailable_OneFullNode(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

We should keep those tests but comment instead, so we can quickly rewrite once we get to reconstruction

We discussed that we need them and agreed to keep them on the availability level.

@Wondertan Wondertan merged commit df13c2a into celestiaorg:shwap Aug 1, 2024
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feat Attached to feature PRs shwap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants