mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Merge #8693: add witness address to address book
62ffbbd
add witness address to address book (instagibbs)
This commit is contained in:
commit
fa7caf6d91
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user