Also allow setting of 'network' via gmhc_app:start/1

This commit is contained in:
Ulf Wiger 2025-05-21 12:10:25 +02:00
parent 29fbfb3c87
commit 476bedfdac

View File

@ -49,7 +49,7 @@ appl_env(extra_pubkeys , Ks, C) -> C#{<<"extra_pubkeys">> => Ks};
appl_env(pool_admin_url, U , C) -> merge(C, #{<<"pool_admin">> => #{<<"url">> => U}}); appl_env(pool_admin_url, U , C) -> merge(C, #{<<"pool_admin">> => #{<<"url">> => U}});
appl_env(workers , Ws, C) -> C#{<<"workers">> => Ws}. appl_env(workers , Ws, C) -> C#{<<"workers">> => Ws}.
env_keys() -> [pubkey, extra_pubkeys, pool_admin_url, workers]. env_keys() -> [pubkey, extra_pubkeys, pool_admin_url, workers, network].
cpath([<<"pubkey">>]) -> [user_config ]; cpath([<<"pubkey">>]) -> [user_config ];
cpath([<<"extra_pubkeys">>]) -> [user_config, schema_default]; cpath([<<"extra_pubkeys">>]) -> [user_config, schema_default];