aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-11-19 14:35:14 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-11-19 14:54:08 -0500
commit638e40cb6080800c7b0a7f4028f63326acbe4700 (patch)
tree05b8025aa1b573e974911096731aac3db2e28af6 /src/psbt.h
parentb4a1da9ef8e4b673c290d5b882527e627ae1b43a (diff)
downloadbitcoin-638e40cb6080800c7b0a7f4028f63326acbe4700.tar.xz
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.
Diffstat (limited to 'src/psbt.h')
-rw-r--r--src/psbt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/psbt.h b/src/psbt.h
index 6a5c468058..6842c60ce5 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -560,6 +560,7 @@ struct PartiallySignedTransaction
};
enum class PSBTRole {
+ CREATOR,
UPDATER,
SIGNER,
FINALIZER,