https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
if (IsCrypted()) {
                if (IsLocked()) {
                    throw stdruntime_error(stdstring(__func__) + " Wallet is locked, cannot setup new s");
                }
                if (!spk_manager->CheckDecryptionKey(vMasterKey) && !spk_manager->Encrypt(vMasterKey, nullptr)) {
                    throw stdruntime_error(stdstring(__func__) + " Could not encrypt new s");
                }
            }
            spk_manager->SetupDescriptorGeneration(master_key, t, internal);
            uint256 id = spk_manager->GetID();
            m_spk_managers[id] = stdmove(spk_manager);
            AddActiveScriptPubKeyMan(id, t, internal);
        }
    }
}
void CWalletSetupDescriptorScriptPubKeyMans()
{
    AssertLockHeld(cs_);
    if (!IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER)) {
        // Make a seed
        CKey seed_key;
        seed_key.MakeNewKey(tr
        CPubKey seed = seed_key.GetPubKey();
        assert(seed_key.VerifyPubKey(seed));
        // Get the extended key
        CExtKey master_key;
        master_key.SetSeed(seed_key);
        SetupDescriptorScriptPubKeyMans(master_key);
    } else {
        ExternalSigner signer = ExternalSignerScriptPubKeyManGetExternalSigner();