Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Jul 9, 2021

This fixes a bug: currently utxoupdatepsbt will not fill in UTXO data for PSBTs spending taproot outputs.

@sipa
Copy link
Member Author

sipa commented Jul 9, 2021

Noticed by @roconnor-blockstream.

@murchandamus
Copy link
Contributor

Concept ACK

Copy link
Member

Choose a reason for hiding this comment

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

nit: Maybe turn this into a switch-case to get compiler output when v2 is added, but this isn't updated?

Copy link
Member

Choose a reason for hiding this comment

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

@sipa Are you still working on this? Happy to take over if not.

@maflcko maflcko added this to the 22.0 milestone Jul 10, 2021
@laanwj
Copy link
Member

laanwj commented Jul 12, 2021

ACK, but I like @MarcoFalke's suggestion to make the compiler complain about an uncovered case in case more enum items are added in the future, and this function is not updated.

@GeneFerneau
Copy link

Concept + review ACK e3e0594

@sipa sipa force-pushed the 202107_taproot_is_segwit branch from e3e0594 to 8465978 Compare July 16, 2021 00:09
@sipa
Copy link
Member Author

sipa commented Jul 16, 2021

I took another approach, and made it us IsWitnessProgram instead of trying to match against all variations that now exist as output from Solver.

@bitcoin bitcoin deleted a comment from Dunlap28 Jul 16, 2021
@achow101
Copy link
Member

Code Review ACK 8465978

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

ACK 8465978

Could this use test coverage?

Copy link
Contributor

@meshcollider meshcollider left a comment

Choose a reason for hiding this comment

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

utACK 8465978

@meshcollider meshcollider merged commit e8f85e0 into bitcoin:master Jul 18, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 23, 2021
8465978 Make IsSegWitOutput return true for taproot outputs (Pieter Wuille)

Pull request description:

  This fixes a bug: currently `utxoupdatepsbt` will not fill in UTXO data for PSBTs spending taproot outputs.

ACKs for top commit:
  achow101:
    Code Review ACK 8465978
  jonatack:
    ACK 8465978
  meshcollider:
    utACK 8465978

Tree-SHA512: 2f8f873450bef4b5a4ce5962a231297b386c6b1445e69ce5f36ab28eca7343be3a11bc09c38534b0f75e6f99ba15d78d3ba5d484f6c63e5a9775e1f3f55a74e0
roconnor-blockstream added a commit to ElementsProject/elements that referenced this pull request Jul 25, 2021
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
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.

8 participants