Make signrawtransaction accept P2SH-P2WSH redeemscripts
This commit is contained in:
parent
252ae7111c
commit
5f605e172b
1 changed files with 2 additions and 0 deletions
|
@ -848,6 +848,8 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
|
|||
std::vector<unsigned char> rsData(ParseHexV(v, "redeemScript"));
|
||||
CScript redeemScript(rsData.begin(), rsData.end());
|
||||
tempKeystore.AddCScript(redeemScript);
|
||||
// Automatically also add the P2WSH wrapped version of the script (to deal with P2SH-P2WSH).
|
||||
tempKeystore.AddCScript(GetScriptForWitness(redeemScript));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue