-
Notifications
You must be signed in to change notification settings - Fork 954
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
fix(modda): correct slice appends #3267
Conversation
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.
Thank you for fixing this one!
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.
Might need a review from @tzdybal as an author of the code
The auther per github is @distractedm1nd See: |
Ryan just copy-pasted code from go-da instead of merging histort |
This is the original code https://github.com/rollkit/celestia-da/blob/main/celestia/celestia.go#L158-L178. |
created rollkit/celestia-da#90 |
I think the rollkit version is okay actually and the bug only exists in celestia-node |
That's right, @tsite. Appends on empty slice work correctly there, but less optimized because it does not preallocate. Seems like the code was slightly bugified during the copy process 😄. Thanks for catching this again! |
No description provided.