diff options
| author | Pieter Wuille <[email protected]> | 2017-11-30 16:49:04 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-01-09 15:35:27 -0800 |
| commit | f37c64e477d679853a4076f2f7888568bb034e90 (patch) | |
| tree | c89e9c12f55bf306452d8cd20c45a7a81f9fed6e /src/wallet/rpcwallet.cpp | |
| parent | [test] Serialize CTransaction with witness by default (diff) | |
| download | discoin-f37c64e477d679853a4076f2f7888568bb034e90.tar.xz discoin-f37c64e477d679853a4076f2f7888568bb034e90.zip | |
Implicitly know about P2WPKH redeemscripts
Make CKeyStore automatically known about the redeemscripts necessary for P2SH-P2WPKH
(and due to the extra checks in IsMine, also P2WPKH) spending.
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index b366992de..e4b2b020b 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1307,7 +1307,7 @@ UniValue addwitnessaddress(const JSONRPCRequest& request) throw JSONRPCError(RPC_WALLET_ERROR, "Cannot convert between witness address types"); } } else { - pwallet->AddCScript(witprogram); + pwallet->AddCScript(witprogram); // Implicit for single-key now, but necessary for multisig and for compatibility with older software pwallet->SetAddressBook(w.result, "", "receive"); } |