Skip to content

Commit

Permalink
Merge branch 'main' into feat/os_keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman authored Dec 12, 2024
2 parents 4288630 + 9ec9b02 commit 6661b42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/soroban-cli/src/commands/snapshot/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,13 @@ impl Cmd {
}
BucketEntry::Deadentry(k) => (k, None),
BucketEntry::Metaentry(m) => {
snapshot.protocol_version = m.ledger_version;
if m.ledger_version > snapshot.protocol_version {
snapshot.protocol_version = m.ledger_version;
print.infoln(format!(
"Protocol version: {}",
snapshot.protocol_version
));
}
continue;
}
};
Expand Down

0 comments on commit 6661b42

Please sign in to comment.