diff --git a/filecoin-proofs/src/bin/phase2.rs b/filecoin-proofs/src/bin/phase2.rs index 7dd77811aa..06a8837eb6 100644 --- a/filecoin-proofs/src/bin/phase2.rs +++ b/filecoin-proofs/src/bin/phase2.rs @@ -1564,6 +1564,16 @@ fn main() { |_| panic!("failed to write meta information to {}", meta_path), ); } + + // The info file contains the filename the parameter was created of. + { + let info_path = format!("v{}-{}.info", parameter_cache::VERSION, &identifier); + println!("writing info to file: {}", info_path); + let mut info_file = File::create(&info_path) + .unwrap_or_else(|_| panic!("failed to create {}", info_path)); + writeln!(&mut info_file, "{}", input_path) + .unwrap_or_else(|_| panic!("failed to write info data to {}", info_path)); + } } _ => unreachable!(), }