Page MenuHomePhabricator

psbt: handle unspendable psbts
ClosedPublic

Authored by deadalnix on Oct 23 2020, 01:45.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC5a49f316c182: psbt: handle unspendable psbts
Summary
  • 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.

  • Mark PSBTs spending unspendable outputs as invalid in analysis

This is a backport of Core PR17524

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable