[0.19] psbt: handle unspendable psbts #17853

pull luke-jr wants to merge 2 commits into bitcoin:0.19 from luke-jr:fix_unspendable_psbt-0.19 changing 6 files +29 −1
  1. luke-jr commented at 4:05 AM on January 3, 2020: member

    Backport of #17524

  2. Have a PSBTAnalysis state that indicates invalid PSBT
    Invalid PSBTs need to be re-created, so the next role is the
    Creator (new PSBTRole). Additionally, we need to know what went
    wrong so an error field was added to PSBTAnalysis.
    
    A PSBTAnalysis indicating invalid will have empty everything,
    next will be set to PSBTRole::CREATOR, and an error message.
    
    Github-Pull: #17524
    Rebased-From: 638e40cb6080800c7b0a7f4028f63326acbe4700
    551583398b
  3. Mark PSBTs spending unspendable outputs as invalid in analysis
    Github-Pull: #17524
    Rebased-From: 773d4572a4864ab7b6380858d07d9579ff6dd9a2
    ca5f8deefd
  4. fanquake added the label Backport on Jan 3, 2020
  5. fanquake added this to the milestone 0.19.1 on Jan 3, 2020
  6. fanquake requested review from achow101 on Jan 3, 2020
  7. achow101 commented at 4:41 PM on January 3, 2020: member

    ACK ca5f8deefd778195cb10a3419d3b5c0693abb958

    Diff is the same.

  8. fanquake referenced this in commit febf04841f on Jan 4, 2020
  9. fanquake merged this on Jan 4, 2020
  10. fanquake closed this on Jan 4, 2020

  11. DrahtBot locked this on Feb 15, 2022
Contributors


achow101

Labels

Milestone
0.19.1


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me