https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
{
    return vMasterKey;
}
bool CWalletHasEncryptionKeys() const
{
    return !mapMasterKeys.empty();
}
void CWalletConnectScriptPubKeyManNotifiers()
{
    for (const auto& spk_man  GetActiveScriptPubKeyMans()) {
        spk_man->NotifyWatchonlyChanged.connect(NotifyWatchonlyChanged);
        spk_man->NotifyCanGetAddressesChanged.connect(NotifyCanGetAddressesChanged);
    }
}
void CWalletLoadDescriptorScriptPubKeyMan(uint256 id, WalletDescriptor& desc)
{
    if (IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER)) {
        auto spk_manager = stdunique_ptr<ScriptPubKeyMan>(new ExternalSignerScriptPubKeyMan(*this, desc));
        m_spk_managers[id] = stdmove(spk_manager);
    } else {
        auto spk_manager = stdunique_ptr<ScriptPubKeyMan>(new DescriptorScriptPubKeyMan(*this, desc));
        m_spk_managers[id] = stdmove(spk_manager);
    }
}
void CWalletSetupDescriptorScriptPubKeyMans(const CExtKey& master_key)
{
    AssertLockHeld(cs_);
    for (bool internal  {false, true}) {
        for (OutputType t  OUTPUT_TYPES) {
            auto spk_manager = stdunique_ptr<DescriptorScriptPubKeyMan>(new DescriptorScriptPubKeyMan(*this));