diff options
| author | instagibbs <[email protected]> | 2016-09-09 12:13:18 -0400 |
|---|---|---|
| committer | instagibbs <[email protected]> | 2016-09-09 12:15:08 -0400 |
| commit | 62ffbbdec30699941069baeae61716ff12155ba6 (patch) | |
| tree | 773a6a8b2b00d909d14307886326a485f5f77780 /src/wallet/rpcwallet.cpp | |
| parent | Merge #8594: Do not add random inbound peers to addrman. (diff) | |
| download | discoin-62ffbbdec30699941069baeae61716ff12155ba6.tar.xz discoin-62ffbbdec30699941069baeae61716ff12155ba6.zip | |
add witness address to address book
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 0ba6706ba..533220ff8 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1087,6 +1087,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(); } |