Merge #8693: add witness address to address book
62ffbbd add witness address to address book (instagibbs)
This commit is contained in:
1 file changed
+2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user