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!: bump nmt from v0.13 to v0.14 and remove the codec from NewTxInclusionProof #1333

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

Bidon15
Copy link
Member

@Bidon15 Bidon15 commented Feb 3, 2023

Overview

Latest v0.12.0-rc5 is not compliant with what node will have to upcoming v0.7.0-rcx, as celestia-node is using nmt v0.14.0 and dropped v0.13.0

This PR fixes this, hence I propose to make a v0.12.0-rc6 afterwards 🙏
In addition, this PR cleans up codec from the signature that is not used in NewTxInclusionProof anymore

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@MSevey MSevey requested review from a team and MSevey and removed request for a team February 3, 2023 10:21
@Bidon15 Bidon15 self-assigned this Feb 3, 2023
cmwaters
cmwaters previously approved these changes Feb 3, 2023
Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

LGTM but I think you need to appease the linter first

@Bidon15
Copy link
Member Author

Bidon15 commented Feb 3, 2023

LGTM but I think you need to appease the linter first

Good catch. Let's see how this one goes

@codecov-commenter
Copy link

Codecov Report

Merging #1333 (750c572) into main (4f9deb0) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main    #1333   +/-   ##
=======================================
  Coverage   48.26%   48.26%           
=======================================
  Files          77       77           
  Lines        4397     4397           
=======================================
  Hits         2122     2122           
  Misses       2098     2098           
  Partials      177      177           
Impacted Files Coverage Δ
pkg/proof/querier.go 21.73% <0.00%> (ø)
pkg/proof/proof.go 67.46% <100.00%> (ø)

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 changed the title chore!: bump nmt from v0.13 to v0.14 chore!: bump nmt from v0.13 to v0.14 and remove the codec from NewTxInclusionProof Feb 3, 2023
Comment on lines -27 to +26
func NewTxInclusionProof(codec rsmt2d.Codec, data types.Data, txIndex uint64) (types.ShareProof, error) {
func NewTxInclusionProof(data types.Data, txIndex uint64) (types.ShareProof, error) {
Copy link
Member

Choose a reason for hiding this comment

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

thanks for removing this since we weren't using this!

out of curiosity, was there any reason in node to remove this as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

To be honest, I have no idea even when node removed this 😓

@evan-forbes evan-forbes merged commit 4089d65 into celestiaorg:main Feb 3, 2023
@Bidon15 Bidon15 deleted the chore/bump-nmt branch February 3, 2023 12:39
evan-forbes pushed a commit that referenced this pull request Feb 27, 2023
…TxInclusionProof` (#1333)

<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

Latest v0.12.0-rc5 is not compliant with what node will have to upcoming
v0.7.0-rc`x`, as celestia-node is using nmt `v0.14.0` and dropped
v0.13.0

This PR fixes this, hence I propose to make a `v0.12.0-rc6` afterwards 🙏
In addition, this PR cleans up codec from the signature that is not used
in `NewTxInclusionProof ` anymore
<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [ ] Linked issues closed with keywords
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.

None yet

4 participants