Start saving/loading prior_roots(_with_hash) to snapshot (#23844)

* Start saving/loading prior_roots(_with_hash) to snapshot

* Update runtime/src/accounts_index.rs

Co-authored-by: Michael Vines <mvines@gmail.com>

* Update runtime/src/accounts_index.rs

Co-authored-by: Michael Vines <mvines@gmail.com>

* update comment

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
Jeff Washington (jwash)
2022-03-24 10:06:24 -05:00
committed by GitHub
parent b22165ad69
commit 396b49a7c1
5 changed files with 40 additions and 7 deletions

View File

@ -12,6 +12,7 @@ where
let result = T::deserialize(d);
match result {
Err(err) if err.to_string() == "io error: unexpected end of file" => Ok(T::default()),
Err(err) if err.to_string() == "io error: failed to fill whole buffer" => Ok(T::default()),
result => result,
}
}