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

share: Availability interface and implementation #171

Merged
merged 25 commits into from
Nov 10, 2021
Merged

share: Availability interface and implementation #171

merged 25 commits into from
Nov 10, 2021

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Nov 5, 2021

Content

  • Extends share package with a new Availability interface to check SharesAvailable
  • Implements LightAvailability that uses DataAvailability sampling technic
  • Fixes tests flakiness and does some minor changes to the existing test suite in service/share

das/daser.go Outdated Show resolved Hide resolved
das/daser.go Outdated Show resolved Hide resolved
ipld/write.go Outdated Show resolved Hide resolved
service/share/availability.go Outdated Show resolved Hide resolved
service/share/light_availability.go Outdated Show resolved Hide resolved
service/share/light_availability.go Outdated Show resolved Hide resolved
service/share/sample.go Outdated Show resolved Hide resolved
service/share/sample.go Outdated Show resolved Hide resolved
service/share/sample.go Outdated Show resolved Hide resolved
service/share/sample.go Show resolved Hide resolved
@Wondertan Wondertan force-pushed the hlib/daser branch 2 times, most recently from 16956e1 to 1bb2126 Compare November 9, 2021 15:12
renaynay
renaynay previously approved these changes Nov 9, 2021
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

👍🏻

ipld/write.go Outdated Show resolved Hide resolved
service/share/light_availability.go Outdated Show resolved Hide resolved
service/share/sample.go Show resolved Hide resolved
adlerjohn
adlerjohn previously approved these changes Nov 9, 2021
@Wondertan
Copy link
Member Author

Extracted flaky test fixing commits into celestiaorg/celestia-app#1639

Copy link
Member

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

lfg

@Wondertan Wondertan merged commit 2adcfc6 into main Nov 10, 2021
@Wondertan Wondertan deleted the hlib/daser branch November 10, 2021 15:44
Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Joining too late to the party. Saw this was already merged 💪🏼

func Share(lc fx.Lifecycle, dag ipld.DAGService) share.Service {
service := share.NewService(dag)
func Share(ctx context.Context, lc fx.Lifecycle, dag ipld.DAGService) share.Service {
avail := share.NewLightAvailability(merkledag.NewSession(fxutil.WithLifecycle(ctx, lc), dag))
Copy link
Member

Choose a reason for hiding this comment

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

Wondering if we should not directly use the fxutil.WithLifecycle(ctx, lc) as a param instead?

getter format.NodeGetter
}

// NewLightAvailability creates a new Light DataAvailability.
Copy link
Member

Choose a reason for hiding this comment

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

~~What is a Light DataAvailability?~~NVM, just saw the comment on top of lightAvailability. The comment here is still somewaht confusing imo.

@Wondertan Wondertan restored the hlib/daser branch January 7, 2022 14:40
@Wondertan Wondertan deleted the hlib/daser branch January 7, 2022 15:57
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.

4 participants