aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-09-13 17:09:28 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-09-13 17:10:28 +0200
commitfa7caf6d9116c35433a2069174f4c66f051d52ba (patch)
treed017d63c2061c93139de361a7e85a91323433e94 /src/wallet
parentc9914c2094686d69e5166b147f3b5a8ce09ae55e (diff)
parent62ffbbdec30699941069baeae61716ff12155ba6 (diff)
Merge #8693: add witness address to address book
62ffbbd add witness address to address book (instagibbs)
Diffstat (limited to 'src/wallet')
-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 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();
}