diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2019-01-09 03:08:32 -0800 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2019-02-11 14:08:04 -0800 |
commit | 102faad81efa1cb12c29c466cfe81fc8c7351e1d (patch) | |
tree | 7353c37cc34161eb350e41cac2f1a7e1e8b8ee23 /src/rpc/util.cpp | |
parent | 78b9893d020e8b1351565f1adbf591cb32f6dc90 (diff) |
Factor out combine / finalize / extract PSBT helpers
Refactor the new CombinePSBT, FinalizePSBT, and FinalizeAndExtractPSBT
general-purpose functions out of the combinepsbt and finalizepsbt RPCs,
for use in the GUI code.
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 9e825ac12a..653568044d 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -151,6 +151,8 @@ RPCErrorCode RPCErrorFromTransactionError(TransactionError terr) case TransactionError::P2P_DISABLED: return RPC_CLIENT_P2P_DISABLED; case TransactionError::INVALID_PSBT: + case TransactionError::PSBT_MISMATCH: + return RPC_INVALID_PARAMETER; case TransactionError::SIGHASH_MISMATCH: return RPC_DESERIALIZATION_ERROR; default: break; |