From 91ae0e92e67cc32c5d9141948f070ec516854b82 Mon Sep 17 00:00:00 2001 From: Ruslan Kasheparov Date: Wed, 24 Jun 2026 13:01:22 +0200 Subject: [PATCH 1/2] rpc: fix fields describtion in man in 'decodepsbt' --- src/rpc/rawtransaction.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 2ea9c3e21c..bff3a83bef 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -1155,9 +1155,7 @@ static RPCHelpMan decodepsbt() {RPCResult::Type::NUM, "output_count", "The number of outputs in this psbt."}, {RPCResult::Type::NUM, "inputs_modifiable", /*optional=*/true, "Whether inputs can be modified"}, {RPCResult::Type::NUM, "outputs_modifiable", /*optional=*/true, "Whether outputs can be modified"}, - {RPCResult::Type::ARR, "sighash_single_indexes", /*optional=*/true, "The indexes which have SIGHASH_SINGLE signatures", - {{RPCResult::Type::NUM, "", "Index of an input with a SIGHASH_SINGLE signature"}}, - }, + {RPCResult::Type::BOOL, "has_sighash_single", /*optional=*/true, "Whether this PSBT has SIGHASH_SINGLE inputs"}, {RPCResult::Type::NUM, "psbt_version", "The PSBT version number. Not to be confused with the unsigned transaction version"}, {RPCResult::Type::ARR, "scalar_offsets", /*optional=*/true, "The PSET scalar elements", { From ef1d2673d700061eb7349431c54e59d91da64efc Mon Sep 17 00:00:00 2001 From: Ruslan Kasheparov Date: Wed, 24 Jun 2026 18:01:36 +0200 Subject: [PATCH 2/2] rpc: fix fields type in man in 'decodepsbt' --- src/rpc/rawtransaction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index bff3a83bef..584bec3637 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -1153,8 +1153,8 @@ static RPCHelpMan decodepsbt() {RPCResult::Type::NUM, "fees", "The fees specified in this psbt.", {}, /*skip_type_check=*/true}, // ELEMENTS has an explicit fee output, bitcoin does not (they are implicit) {RPCResult::Type::NUM, "input_count", "The number of inputs in this psbt"}, {RPCResult::Type::NUM, "output_count", "The number of outputs in this psbt."}, - {RPCResult::Type::NUM, "inputs_modifiable", /*optional=*/true, "Whether inputs can be modified"}, - {RPCResult::Type::NUM, "outputs_modifiable", /*optional=*/true, "Whether outputs can be modified"}, + {RPCResult::Type::BOOL, "inputs_modifiable", /*optional=*/true, "Whether inputs can be modified"}, + {RPCResult::Type::BOOL, "outputs_modifiable", /*optional=*/true, "Whether outputs can be modified"}, {RPCResult::Type::BOOL, "has_sighash_single", /*optional=*/true, "Whether this PSBT has SIGHASH_SINGLE inputs"}, {RPCResult::Type::NUM, "psbt_version", "The PSBT version number. Not to be confused with the unsigned transaction version"}, {RPCResult::Type::ARR, "scalar_offsets", /*optional=*/true, "The PSET scalar elements",