diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-13 17:09:28 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-13 17:10:28 +0200 |
commit | fa7caf6d9116c35433a2069174f4c66f051d52ba (patch) | |
tree | d017d63c2061c93139de361a7e85a91323433e94 | |
parent | c9914c2094686d69e5166b147f3b5a8ce09ae55e (diff) | |
parent | 62ffbbdec30699941069baeae61716ff12155ba6 (diff) |
Merge #8693: add witness address to address book
62ffbbd add witness address to address book (instagibbs)
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a399f8ad9f..993caad400 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1093,6 +1093,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp) throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet"); } + pwalletMain->SetAddressBook(w.result, "", "receive"); + return CBitcoinAddress(w.result).ToString(); } |