-
Notifications
You must be signed in to change notification settings - Fork 925
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
Conversation
fdbc211
to
2e05c59
Compare
4528005
to
d6bfea3
Compare
d6bfea3
to
579ca32
Compare
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.
Few comments, LFG, otherwise
share/shwap/p2p/bitswap/getter.go
Outdated
@@ -183,10 +183,10 @@ func (g *Getter) GetSharesByNamespace( | |||
} | |||
|
|||
// TODO(@Wondertan): this must use shwap types eventually |
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.
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()) |
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.
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) { |
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.
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.
7d1b850
to
3ae0db2
Compare
Updates Availability and related tests to be aligned with shwap underlying getter
Blocked by #3554