aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-11-19 14:35:14 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2020-01-03 04:04:38 +0000
commit551583398ba4fdae973c047bc60556ffa17c6431 (patch)
treebf2d25b820d1118e230997109834f78c1d26ddbd /src/psbt.cpp
parent8afa602f308ef003bb6893718eae1fe5a830690c (diff)
downloadbitcoin-551583398ba4fdae973c047bc60556ffa17c6431.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. Github-Pull: #17524 Rebased-From: 638e40cb6080800c7b0a7f4028f63326acbe4700
Diffstat (limited to 'src/psbt.cpp')
-rw-r--r--src/psbt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/psbt.cpp b/src/psbt.cpp
index fe74002e82..20473429a4 100644
--- a/src/psbt.cpp
+++ b/src/psbt.cpp
@@ -349,6 +349,7 @@ TransactionError CombinePSBTs(PartiallySignedTransaction& out, const std::vector
std::string PSBTRoleName(PSBTRole role) {
switch (role) {
+ case PSBTRole::CREATOR: return "creator";
case PSBTRole::UPDATER: return "updater";
case PSBTRole::SIGNER: return "signer";
case PSBTRole::FINALIZER: return "finalizer";