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

refactor(ipld): use Set/GetCell API from rstm2d #1173

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

Wondertan
Copy link
Member

The latest rsmt2d version allows us to set cells/share directly into the imported square. Hence, we can avoid using flattened slices and the complexity it introduces when calculating position or index to set a share. Also, we now avoid reimporting the square on each repair retry and overall optimizing the whole process.

Closes #824
Blocked on celestiaorg/rsmt2d#127 and celestiaorg/rsmt2d#128

@Wondertan
Copy link
Member Author

The race tests will fail here until celestiaorg/rsmt2d#128 is merged and released

vgonkivs
vgonkivs previously approved these changes Oct 7, 2022
Copy link
Member

@vgonkivs vgonkivs 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
Collaborator

@distractedm1nd distractedm1nd left a comment

Choose a reason for hiding this comment

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

Beautiful, only one nit

ipld/get_namespaced_shares.go Outdated Show resolved Hide resolved
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.

Generally looks good to me but some questions, 1 nit.

ipld/retriever.go Outdated Show resolved Hide resolved
ipld/retriever.go Outdated Show resolved Hide resolved
ipld/retriever_quadrant.go Outdated Show resolved Hide resolved
@Wondertan
Copy link
Member Author

Rebased on main

walldiss
walldiss previously approved these changes Nov 10, 2022
Copy link
Member

@walldiss walldiss left a comment

Choose a reason for hiding this comment

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

Looks good!

distractedm1nd
distractedm1nd previously approved these changes Nov 11, 2022
Copy link
Collaborator

@distractedm1nd distractedm1nd left a comment

Choose a reason for hiding this comment

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

looks great, thank you, just a few non-blocking questions

share/eds/retriever.go Outdated Show resolved Hide resolved
share/eds/retriever_quadrant.go Show resolved Hide resolved
share/eds/retriever_quadrant.go Outdated Show resolved Hide resolved
The latest rsmt2d version allows us to set cells/share directly into the imported square.
Hence, we can avoid using flattened slices and the complexity it introduces when calculating position or index to set a share.
Also, we now avoid reimporting the square on each repair retry and overall optimizing the whole process.
@Wondertan Wondertan merged commit 19dd38f into main Nov 11, 2022
@Wondertan Wondertan deleted the hlib/rsmt2d-api-update branch November 11, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ipld IPLD plugin
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

deps: bump rsmt2d to latest
5 participants