Skip to content

Conversation

achow101
Copy link
Member

This PR fixes a few bugs that were found and adds tests checking for these errors.

Specifically:

  • Single byte keys are checked to actually be one byte.
  • Unknown global data must be merged when combining two PSBTs.

achow101 added 2 commits July 19, 2018 18:29
Checks that all of the one byte type keys are actually one byte and
throw an error if they are not.

Add tests for each type to check for this behavior.
Actually merge the global unknown key-value pairs.

Add a test for merging unknown key-value pairs.
@fanquake fanquake added this to the 0.17.0 milestone Jul 20, 2018
@practicalswift
Copy link
Contributor

Concept ACK

Thanks for taking another look at this code

@laanwj laanwj added the Bug label Jul 20, 2018
@sipa
Copy link
Member

sipa commented Jul 20, 2018

utACK fad231a

@Christewart
Copy link
Contributor

If there are still serialization questions here it might be worth testing with #12775 / #8469

@laanwj
Copy link
Member

laanwj commented Jul 25, 2018

utACK fad231a

@laanwj laanwj merged commit fad231a into bitcoin:master Jul 25, 2018
laanwj added a commit that referenced this pull request Jul 25, 2018
fad231a Fix merging of global unknown data in PSBTs (Andrew Chow)
41df035 Check that PSBT keys are the correct length (Andrew Chow)

Pull request description:

  This PR fixes a few bugs that were found and adds tests checking for these errors.

  Specifically:
  - Single byte keys are checked to actually be one byte.
  - Unknown global data must be merged when combining two PSBTs.

Tree-SHA512: c0e7b4bc607d510cc005aaa7c0813ee58c5467ab7ce4adce485522dfeee92b1af3d29fe89df778b0ea812bb3827e085b30e04d4f4ebcefd8364d809573991332
kwvg pushed a commit to kwvg/dash that referenced this pull request Jun 4, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jun 4, 2021
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 7, 2021
barrystyle pushed a commit to pacprotocol/pacprotocol that referenced this pull request Jun 8, 2021
barrystyle pushed a commit to pacprotocol/pacprotocol that referenced this pull request Jun 8, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jun 9, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jul 9, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jul 13, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jul 13, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Jul 13, 2021
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Jul 13, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants