https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
// TODO add account parameter
        int account = 0;
        UniValue signer_res = signer.GetDescriptors(account);
        if (!signer_res.isObject()) throw stdruntime_error(stdstring(__func__) + " Unexpected result");
        for (bool internal  {false, true}) {
            const UniValue& _vals = find_value(signer_res, internal ? "internal"  "receive");
            if (!_vals.isArray()) throw stdruntime_error(stdstring(__func__) + " Unexpected result");
            for (const UniValue& desc_val  _vals.get_array().getValues()) {
                const stdstring& desc_str = desc_val.getValStr();
                FlatSigningProvider keys;
                stdstring desc_error;
                stdunique_ptr<Descriptor> desc = Parse(desc_str, keys, desc_error, 
                if (desc == nullptr) {
                    throw stdruntime_error(stdstring(__func__) + " Invalid  \"" + desc_str + "\" (" + desc_error + ")");
                }
                if (!desc->GetOutputType()) {
                    continue;
                }
                OutputType t =  *desc->GetOutputType();
                auto spk_manager = stdunique_ptr<ExternalSignerScriptPubKeyMan>(new ExternalSignerScriptPubKeyMan(*this));
                spk_manager->SetupDescriptor(stdmove(desc));
                uint256 id = spk_manager->GetID();
                m_spk_managers[id] = stdmove(spk_manager);
                AddActiveScriptPubKeyMan(id, t, internal);
            }
        }
    }
}
void CWalletAddActiveScriptPubKeyMan(uint256 id, OutputType type, bool internal)
{