Fix compute_shred_version() (#7989)

automerge
This commit is contained in:
Michael Vines
2020-01-27 18:05:31 -07:00
committed by Grimes
parent 7058287273
commit fd7d5cbe0d
2 changed files with 23 additions and 3 deletions

View File

@ -448,7 +448,7 @@ pub fn bank_from_archive<P: AsRef<Path>>(
} else {
// Once v0.23.x is deployed, this default can be removed and snapshots without a version
// file can be rejected
String::from("v0.22.3")
String::from("0.22.3")
};
let bank = rebuild_bank_from_snapshots(
@ -525,7 +525,7 @@ where
|stream| {
let mut bank: Bank = match snapshot_version {
env!("CARGO_PKG_VERSION") => deserialize_from_snapshot(stream.by_ref())?,
"v0.22.3" => {
"0.22.3" => {
let bank0223: solana_runtime::bank::LegacyBank0223 =
deserialize_from_snapshot(stream.by_ref())?;
bank0223.into()