Add support for spending keys to the encrypted wallet.
This commit is contained in:
@@ -2796,6 +2796,8 @@ Value z_getnewaddress(const Array& params, bool fHelp)
|
||||
|
||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||
|
||||
EnsureWalletIsUnlocked();
|
||||
|
||||
CZCPaymentAddress pubaddr = pwalletMain->GenerateNewZKey();
|
||||
std::string result = pubaddr.ToString();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user