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 252ae71 commit 5f605e1Copy full SHA for 5f605e1
src/rpc/rawtransaction.cpp
@@ -848,6 +848,8 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
848
std::vector<unsigned char> rsData(ParseHexV(v, "redeemScript"));
849
CScript redeemScript(rsData.begin(), rsData.end());
850
tempKeystore.AddCScript(redeemScript);
851
+ // Automatically also add the P2WSH wrapped version of the script (to deal with P2SH-P2WSH).
852
+ tempKeystore.AddCScript(GetScriptForWitness(redeemScript));
853
}
854
855
0 commit comments