pub async fn run(
modules_fn: fn(Network) -> (ServerModuleInitRegistry, ServerModuleConfigGenParamsRegistry),
code_version_hash: &str,
code_version_vendor_suffix: Option<&str>,
) -> !Expand description
Block the thread and run a Fedimintd server
ยงArguments
-
modules_fn- A function to initialize the modules. -
code_version_hash- The git hash of the code that thefedimintdbinary is being built from. This is used mostly for information purposes (fedimintd version-hash). Seefedimint-buildcrate for easy way to obtain it. -
code_version_vendor_suffix- An optional suffix that will be appended to the internal fedimint release version, to distinguish binaries built by different vendors, usually with a different set of modules. Currently DKG will enforce that the combinedcode_versionis the same between all peers.