mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +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(())
|
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> {
|
fn write_to_json_file<P: AsRef<Path>, S: Serialize>(path: P, contents: &S) -> Result<(), String> {
|
||||||
eprintln!("Writing {:?}", path.as_ref());
|
eprintln!("Writing {:?}", path.as_ref());
|
||||||
let mut file = fs::OpenOptions::new()
|
let mut file = fs::OpenOptions::new()
|
||||||
|
|||||||
Reference in New Issue
Block a user