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

Fix TapTree derserialization #950

Merged
merged 1 commit into from Apr 20, 2022

Conversation

sanket1729
Copy link
Member

Trees should only be serialized if both of the following conditions
hold:

  1. Tree is complete binary tree(is_finalized)
  2. Tree does not have any hidden nodes

Trees should only be serialized if both of the following conditions
hold:
1) Tree is complete binary tree(is_finalized)
2) Tree does not have any hidden nodes
@sanket1729
Copy link
Member Author

Currently, this is not an issue because we cannot serialize/deserialize hidden nodes. But in the future, when we add support for serde of hidden nodes, this will be an issue.

@sanket1729 sanket1729 added the bug label Apr 18, 2022
@sanket1729 sanket1729 added this to the 0.28.0 milestone Apr 18, 2022
@sanket1729
Copy link
Member Author

Requesting reviews from @apoelstra and @tcharding to get a 0.28 release out

@tcharding
Copy link
Member

ACK c97589f

@sanket1729
Copy link
Member Author

@tcharding can you approve using the github UI?

@tcharding
Copy link
Member

Woops, done.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK c97589f

@apoelstra apoelstra merged commit 1e58208 into rust-bitcoin:master Apr 20, 2022
ChallengeDev210 pushed a commit to ChallengeDev210/rust-bitcoin that referenced this pull request Aug 1, 2022
c97589f Fix TapTree derserialization (sanket1729)

Pull request description:

  Trees should only be serialized if both of the following conditions
  hold:
  1) Tree is complete binary tree(is_finalized)
  2) Tree does not have any hidden nodes

ACKs for top commit:
  tcharding:
    ACK c97589f
  apoelstra:
    ACK c97589f

Tree-SHA512: 33d16f2d532cb24acba4ab847d493e550f7b279567678f3f2cd7e4161dea8b720a0e35be32b6c506e467c3526a29042aad8f4b5f45133b9a32028d4ee6a48f8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants