Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename plan_cronos to plan_crypto and gas fee changes #30

Merged
merged 4 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sh setup/state-sync.sh <moniker>
This script assumes that you are currently operating on the Evmos fork of GenesisL1 (repo: [`genesis-ethermint`](https://github.com/zenodeapp/genesis-ethermint)) and the node synced till height: `insert_height_here` which caused it to panic.

> [!IMPORTANT]
> This should only be used if you run a **full-node** and have to perform the **"plan_cronos"**-upgrade.
> This should only be used if you run a **full-node** and have to perform the **"plan_crypto"**-upgrade.

```
sh setup/upgrade.sh
Expand Down
12 changes: 6 additions & 6 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func UpgradeV1(
evm *evmkeeper.Keeper,
) UpgradeInfo {
return UpgradeInfo{
Name: "plan_cronos",
Name: "plan_crypto",
Info: `'{"binaries":{"darwin/amd64":"","darwin/x86_64":"","linux/arm64":"","linux/amd64":"","windows/x86_64":""}}'`,
Handler: func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
m, err := mm.RunMigrations(ctx, configurator, fromVM)
Expand All @@ -38,10 +38,10 @@ func UpgradeV1(

// Override feemarket parameters
fmParams := fm.GetParams(ctx)
fmParams.BaseFeeChangeDenominator = 300
fmParams.ElasticityMultiplier = 4
fmParams.BaseFee = sdk.NewInt(10000000000000)
fmParams.MinGasPrice = sdk.NewDec(10000000000000)
fmParams.BaseFeeChangeDenominator = 8
fmParams.ElasticityMultiplier = 2
fmParams.BaseFee = sdk.NewInt(50000000000)
fmParams.MinGasPrice = sdk.NewDec(50000000000)
fm.SetParams(ctx, fmParams)

// clear extra_eips from evm parameters
Expand Down Expand Up @@ -98,4 +98,4 @@ func (app *App) RegisterUpgradeHandlers(experimental bool) {
// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, storeUpgrades))
}
}
}
2 changes: 1 addition & 1 deletion setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This script installs all the dependencies (and system configurations) that are n
## upgrade.sh

> [!WARNING]
> This script should only be used if you run a full-node and have to perform the **"plan_cronos"**-upgrade!
> This script should only be used if you run a full-node and have to perform the **"plan_crypto"**-upgrade!
>
> This means that you are currently operating on the Evmos fork of GenesisL1 (repo: [`genesis-ethermint`](https://github.com/zenodeapp/genesis-ethermint)) and the node synced till height: `insert_height_here` which caused it to panic.

Expand Down
2 changes: 1 addition & 1 deletion setup/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cat <<"EOF"
EOF

echo ""
echo "This script should only be used if you run a full-node and have to perform the plan_cronos"
echo "This script should only be used if you run a full-node and have to perform the plan_crypto"
echo "upgrade! This means you are currently operating on the Evmos fork of GenesisL1 and the node"
echo "synced till the height that caused it to panic."
echo ""
Expand Down
Loading