Style and docs
This commit is contained in:
parent
85fd62917a
commit
5fd2e15313
@ -66,7 +66,7 @@ pub struct Spec {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
/// What engine are we using for this?
|
/// What engine are we using for this?
|
||||||
pub engine: Arc<Engine>,
|
pub engine: Arc<Engine>,
|
||||||
/// The fork identifier for this chain. Only needed to distinguish two chains sharing the same genesis.
|
/// Name of the subdir inside the main data dir to use for chain data and settings.
|
||||||
pub data_dir: String,
|
pub data_dir: String,
|
||||||
|
|
||||||
/// Known nodes on the network in enode format.
|
/// Known nodes on the network in enode format.
|
||||||
|
@ -130,7 +130,6 @@ pub fn upgrade(db_path: Option<&str>) -> Result<usize, Error> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn file_exists(path: &Path) -> bool {
|
fn file_exists(path: &Path) -> bool {
|
||||||
match fs::metadata(&path) {
|
match fs::metadata(&path) {
|
||||||
Err(ref e) if e.kind() == io::ErrorKind::NotFound => false,
|
Err(ref e) if e.kind() == io::ErrorKind::NotFound => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user