diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-09-13 17:09:28 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-09-13 17:10:28 +0200 |
| commit | fa7caf6d9116c35433a2069174f4c66f051d52ba (patch) | |
| tree | d017d63c2061c93139de361a7e85a91323433e94 /src/wallet/rpcwallet.cpp | |
| parent | Merge #8699: Remove createwitnessaddress RPC command (diff) | |
| parent | add witness address to address book (diff) | |
| download | discoin-fa7caf6d9116c35433a2069174f4c66f051d52ba.tar.xz discoin-fa7caf6d9116c35433a2069174f4c66f051d52ba.zip | |
Merge #8693: add witness address to address book
62ffbbd add witness address to address book (instagibbs)
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
| -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 a399f8ad9..993caad40 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(); } |