Skip to content

Commit 73867bf

Browse files
authored
Merge pull request #37 from litecoinz-core/devel
Fix z_getnewaddress issue on encrypted wallet
2 parents 8b69afb + 1e413f5 commit 73867bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/rpcwallet.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -4725,6 +4725,8 @@ static UniValue z_getnewaddress(const JSONRPCRequest& request)
47254725
libzcash::PaymentAddress dest;
47264726
std::string error;
47274727

4728+
EnsureWalletIsUnlocked(pwallet);
4729+
47284730
if (address_type == ADDR_TYPE_SPROUT) {
47294731
if (isSaplingEnabled) {
47304732
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Generation of new sprout addresses is deprecated and will be fully removed in 3.1.0");

0 commit comments

Comments
 (0)