Skip to content

Commit

Permalink
Bump to latest end and update contract cost params for V22 (#4475)
Browse files Browse the repository at this point in the history
# Description

1. Picks up the latest env version.
2. Bumps the xdr.
3. Adds new cost types for V22.

I just finished up what Jay had started, so I still need to review the
cost type changes.

<!---

Describe what this pull request does, which issue it's resolving
(usually applicable for code changes).

--->

# Checklist
- [ ] Reviewed the
[contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes)
document
- [ ] Rebased on top of master (no merge commits)
- [ ] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio
extension)
- [ ] Compiles
- [ ] Ran all tests
- [ ] If change impacts performance, include supporting evidence per the
[performance
document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)
  • Loading branch information
sisuresh committed Sep 20, 2024
2 parents 10ee902 + 96b410b commit b253ee8
Show file tree
Hide file tree
Showing 16 changed files with 1,482 additions and 1,043 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/herder/Upgrades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,10 @@ Upgrades::applyVersionUpgrade(Application& app, AbstractLedgerTxn& ltx,
{
SorobanNetworkConfig::createCostTypesForV21(ltx, app);
}
if (needUpgradeToVersion(ProtocolVersion::V_22, prevVersion, newVersion))
{
SorobanNetworkConfig::createCostTypesForV22(ltx, app);
}
}

void
Expand Down
Loading

0 comments on commit b253ee8

Please sign in to comment.