add witness address to address book
This commit is contained in:
parent
5b2ea29cf4
commit
62ffbbdec3
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue