diff options
| author | NicolasDorier <[email protected]> | 2016-04-10 15:59:23 +0900 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-22 15:43:01 +0200 |
| commit | 745eb678ef5d52c74edcd9c322ebd1f3232a9310 (patch) | |
| tree | fa08a8303b9f25efb19b5fa72cde264d276e2d48 /src/bitcoin-tx.cpp | |
| parent | [RPC] Add wallet support for witness transactions (using P2SH) (diff) | |
| download | discoin-745eb678ef5d52c74edcd9c322ebd1f3232a9310.tar.xz discoin-745eb678ef5d52c74edcd9c322ebd1f3232a9310.zip | |
[RPC] signrawtransaction can sign P2WSH
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index f457ea2bc..8e8ac4745 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -454,7 +454,7 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr) // if redeemScript given and private keys given, // add redeemScript to the tempKeystore so it can be signed: - if (fGivenKeys && scriptPubKey.IsPayToScriptHash() && + if (fGivenKeys && (scriptPubKey.IsPayToScriptHash() || scriptPubKey.IsPayToWitnessScriptHash()) && prevOut.exists("redeemScript")) { UniValue v = prevOut["redeemScript"]; vector<unsigned char> rsData(ParseHexUV(v, "redeemScript")); |