wallet: do not spam about non-existent spk managers
This commit is contained in:
1 parent
3f56ef7bef
commit
6084d2caed
1 file changed
-1
@@ -2962,7 +2962,6 @@ ScriptPubKeyMan* CWallet::GetScriptPubKeyMan(const OutputType& type, bool intern
|
|||||||
const std::map<OutputType, ScriptPubKeyMan*>& spk_managers = internal ? m_internal_spk_managers : m_external_spk_managers;
|
const std::map<OutputType, ScriptPubKeyMan*>& spk_managers = internal ? m_internal_spk_managers : m_external_spk_managers;
|
||||||
std::map<OutputType, ScriptPubKeyMan*>::const_iterator it = spk_managers.find(type);
|
std::map<OutputType, ScriptPubKeyMan*>::const_iterator it = spk_managers.find(type);
|
||||||
if (it == spk_managers.end()) {
|
if (it == spk_managers.end()) {
|
||||||
WalletLogPrintf("%s scriptPubKey Manager for output type %d does not exist\n", internal ? "Internal" : "External", static_cast<int>(type));
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|||||||
Reference in new issue
Block a user