Function solana_runtime::snapshot_utils::snapshot_version_from_file
source · fn snapshot_version_from_file(path: impl AsRef<Path>) -> Result<String>
Expand description
Reads the snapshot_version
from a file. Before opening the file, its size
is compared to MAX_SNAPSHOT_VERSION_FILE_SIZE
. If the size exceeds this
threshold, it is not opened and an error is returned.