Merge #8693: add witness address to address book

62ffbbd add witness address to address book (instagibbs)
This commit is contained in:
Wladimir J. van der Laan 2016-09-13 17:09:28 +02:00
commit fa7caf6d91
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

@ -1093,6 +1093,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp)
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet"); throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
} }
pwalletMain->SetAddressBook(w.result, "", "receive");
return CBitcoinAddress(w.result).ToString(); return CBitcoinAddress(w.result).ToString();
} }