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: 638e40cb60
This commit is contained in:
Andrew Chow
2019-11-19 14:35:14 -05:00
committed by Luke Dashjr
parent 8afa602f30
commit 551583398b
4 changed files with 18 additions and 1 deletions

View File

@@ -552,6 +552,7 @@ struct PartiallySignedTransaction
};
enum class PSBTRole {
CREATOR,
UPDATER,
SIGNER,
FINALIZER,