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

chore: update to rsmt2d v0.7.0 #926

Merged
merged 9 commits into from
Oct 28, 2022

Conversation

rahulghangas
Copy link
Contributor

@rahulghangas rahulghangas commented Oct 28, 2022

Updates dependency of rsmt2d to v0.7.0
Changes relevant constructors/methods to update to new definition of rsmt2d.TreeConstructorFn

@rahulghangas rahulghangas marked this pull request as draft October 28, 2022 03:37
@evan-forbes
Copy link
Member

I'm working on fixing the remaining tests, as there are non-intuitive things in the wrapper (that we should eventually get rid of...)

@evan-forbes evan-forbes marked this pull request as ready for review October 28, 2022 12:28
@evan-forbes evan-forbes added C: Celestia app consensus breaking modifies block validity rules in a way that will break consensus unless all nodes update their rules labels Oct 28, 2022
evan-forbes
evan-forbes previously approved these changes Oct 28, 2022
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

I'm approving, but we should probably get someone other than @rahulghangas or myself before merging

rach-id
rach-id previously approved these changes Oct 28, 2022
Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

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

Approving given the typo is fixed

pkg/da/data_availability_header.go Outdated Show resolved Hide resolved
@evan-forbes evan-forbes dismissed stale reviews from rach-id and themself via 0a4b558 October 28, 2022 12:47
Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #926 (0a4b558) into main (3320868) will increase coverage by 0.01%.
The diff coverage is 93.54%.

@@            Coverage Diff             @@
##             main     #926      +/-   ##
==========================================
+ Coverage   26.11%   26.13%   +0.01%     
==========================================
  Files          77       77              
  Lines        9347     9353       +6     
==========================================
+ Hits         2441     2444       +3     
- Misses       6677     6680       +3     
  Partials      229      229              
Impacted Files Coverage Δ
pkg/wrapper/nmt_wrapper.go 80.00% <85.71%> (-6.21%) ⬇️
pkg/da/data_availability_header.go 80.99% <100.00%> (-0.16%) ⬇️
pkg/inclusion/nmt_caching.go 81.66% <100.00%> (+1.66%) ⬆️
pkg/prove/proof.go 83.09% <100.00%> (-0.47%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@evan-forbes evan-forbes merged commit 3c4fb68 into celestiaorg:main Oct 28, 2022
})
tr := wrapper.NewErasuredNamespacedMerkleTree(uint64(len(row)), 0)
for _, r := range rowChunk {
// c := (i * subLeafRange) + j
Copy link
Collaborator

Choose a reason for hiding this comment

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

sorry for delayed review but this comment appears residual / safe to delete

rootulp added a commit that referenced this pull request Oct 28, 2022
rootulp added a commit that referenced this pull request Oct 30, 2022
@rahulghangas rahulghangas deleted the chore/update-rsmt2d0.7.0 branch October 31, 2022 15:37
rach-id added a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Updates dependency of rsmt2d to v0.7.0
Changes relevant constructors/methods to update to new definition of
rsmt2d.TreeConstructorFn

- [x] Closes celestiaorg#712
- [x] Closes celestiaorg#754

Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
rach-id added a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Updates dependency of rsmt2d to v0.7.0
Changes relevant constructors/methods to update to new definition of
rsmt2d.TreeConstructorFn

- [x] Closes celestiaorg#712
- [x] Closes celestiaorg#754

Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
Co-authored-by: CHAMI Rachid <chamirachid1@gmail.com>
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
@evan-forbes evan-forbes added this to the Incentivized Testnet milestone Jan 3, 2023
cmwaters pushed a commit to celestiaorg/go-square that referenced this pull request Dec 14, 2023
0xchainlover pushed a commit to celestia-org/celestia-app that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus breaking modifies block validity rules in a way that will break consensus unless all nodes update their rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor to update to rsmt2d v0.7.0 Use the new rsmt2d.TreeConstructorFn
5 participants