Skip to content

Commit

Permalink
Merge branch 'main' into feat/ts-bindings/bind-wasm-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored Dec 12, 2024
2 parents e8dc57e + 9ec9b02 commit 22c123f
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 22c123f

Please sign in to comment.