Fix TapTree derserialization#950
Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom Apr 20, 2022
Merged
Conversation
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
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. |
Member
Author
|
Requesting reviews from @apoelstra and @tcharding to get a 0.28 release out |
Member
|
ACK c97589f |
Member
Author
|
@tcharding can you approve using the github UI? |
tcharding
approved these changes
Apr 19, 2022
Member
|
Woops, done. |
apoelstra
approved these changes
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trees should only be serialized if both of the following conditions
hold: