aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-09-13 17:09:28 +0200
committerWladimir J. van der Laan <[email protected]>2016-09-13 17:10:28 +0200
commitfa7caf6d9116c35433a2069174f4c66f051d52ba (patch)
treed017d63c2061c93139de361a7e85a91323433e94 /src/wallet/rpcwallet.cpp
parentMerge #8699: Remove createwitnessaddress RPC command (diff)
parentadd witness address to address book (diff)
downloaddiscoin-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.cpp2
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();
}