From e6cf0ed92de31a5ac35a271b0da8f0a8364d1175 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 1 Mar 2021 17:37:25 -0500 Subject: wallet, rpc: listdescriptors does not need unlocked With the last hardened xpub cache, we don't neeed to have the wallet be unlocked for listdescriptors. --- src/wallet/scriptpubkeyman.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/wallet/scriptpubkeyman.cpp') diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index ddb6b05071..2a3880f2d1 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -2269,9 +2269,6 @@ const std::vector DescriptorScriptPubKeyMan::GetScriptPubKeys() const bool DescriptorScriptPubKeyMan::GetDescriptorString(std::string& out) const { LOCK(cs_desc_man); - if (m_storage.IsLocked()) { - return false; - } FlatSigningProvider provider; provider.keys = GetKeys(); -- cgit v1.2.3