From 102faad81efa1cb12c29c466cfe81fc8c7351e1d Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Wed, 9 Jan 2019 03:08:32 -0800 Subject: 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. --- src/rpc/util.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc/util.cpp') 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; -- cgit v1.2.3