pub fn ensure_zcashd_datadir(
datadir: &Path,
extra_args: &[String],
) -> Result<(), Report>Expand description
Ensures the supervised zcashd datadir and effective config file are ready.
Creates the datadir if missing, bootstraps a minimal config file if the
effective zcash.conf is absent, and warns about existing config settings
that are surprising or incompatible in zcashd-compat mode.
Spec: extra_args are passed to zcashd unchanged, so this only performs
best-effort path inference for bootstrap and logs warnings for ambiguous
path options.
ยงErrors
Returns an error if the datadir or config file cannot be created, or if an existing config file cannot be read.