Function forest_filecoin::daemon::set_snapshot_path_if_needed
source · async fn set_snapshot_path_if_needed(
config: &mut Config,
chain_config: &ChainConfig,
epoch: i64,
auto_download_snapshot: bool,
download_directory: &Path,
) -> Result<()>
Expand description
If our current chain is below a supported height, we need a snapshot to bring it up to a supported height. If we’ve not been given a snapshot by the user, get one.
An Err
should be considered fatal.