mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
wallet: do not spam about non-existent spk managers
This commit is contained in:
parent
3f56ef7bef
commit
6084d2caed
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue