add witness address to address book

Github-Pull: #8693
Rebased-From: 62ffbbdec3
This commit is contained in:
instagibbs 2016-09-09 12:13:18 -04:00 committed by Luke Dashjr
parent 8d9e8adc05
commit c6a629100b
1 changed files with 2 additions and 0 deletions

View File

@ -1088,6 +1088,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();
}