Add skip-slots command (#1095)

This commit is contained in:
Paul Hauner
2020-05-04 08:04:00 +10:00
committed by GitHub
parent 90453181f8
commit ebbc4e3630
3 changed files with 86 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ fn do_transition<T: EthSpec>(
Ok(pre_state)
}
fn load_from_ssz<T: Decode>(path: PathBuf) -> Result<T, String> {
pub fn load_from_ssz<T: Decode>(path: PathBuf) -> Result<T, String> {
let mut file =
File::open(path.clone()).map_err(|e| format!("Unable to open file {:?}: {:?}", path, e))?;
let mut bytes = vec![];