mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
Tidy directory structure
This commit is contained in:
@@ -503,6 +503,9 @@ async fn run<'a, T: EthSpec>(config: CreateConfig, spec: &ChainSpec) -> Result<(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Write some object to a file as JSON.
|
||||
///
|
||||
/// The file must be created new, it must not already exist.
|
||||
fn write_to_json_file<P: AsRef<Path>, S: Serialize>(path: P, contents: &S) -> Result<(), String> {
|
||||
eprintln!("Writing {:?}", path.as_ref());
|
||||
let mut file = fs::OpenOptions::new()
|
||||
|
||||
Reference in New Issue
Block a user