We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f933b3 commit 41ff967Copy full SHA for 41ff967
src/rpc/rawtransaction.cpp
@@ -565,7 +565,7 @@ UniValue decodescript(const JSONRPCRequest& request)
565
r.pushKV("p2sh", EncodeDestination(CScriptID(script)));
566
// P2SH and witness programs cannot be wrapped in P2WSH, if this script
567
// is a witness program, don't return addresses for a segwit programs.
568
- if (type.get_str().find("witness") == std::string::npos) {
+ if (type.get_str() == "pubkey" || type.get_str() == "pubkeyhash" || type.get_str() == "multisig" || type.get_str() == "nonstandard") {
569
txnouttype which_type;
570
std::vector<std::vector<unsigned char>> solutions_data;
571
Solver(script, which_type, solutions_data);
0 commit comments