Skip to content

Commit

Permalink
feat: upgrade kroma mainnet and kroma sepolia to v1.3.3 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHansLee authored Mar 28, 2024
1 parent 148f6b0 commit 81166b5
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .env.mainnet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Network to run the node on ("mainnet")
NETWORK_NAME=mainnet

IMAGE_TAG__KROMA_GETH=v0.4.3
IMAGE_TAG__KROMA_NODE=v1.3.1
IMAGE_TAG__KROMA_VALIDATOR=v1.3.1
IMAGE_TAG__KROMA_GETH=v0.4.5
IMAGE_TAG__KROMA_NODE=v1.3.3
IMAGE_TAG__KROMA_VALIDATOR=v1.3.3
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.2
IMAGE_TAG__KROMA_PROVER=v0.1.4

Expand Down
6 changes: 3 additions & 3 deletions .env.sepolia
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Network to run the node on ("sepolia")
NETWORK_NAME=sepolia

IMAGE_TAG__KROMA_GETH=v0.4.4
IMAGE_TAG__KROMA_NODE=v1.3.2
IMAGE_TAG__KROMA_VALIDATOR=v1.3.2
IMAGE_TAG__KROMA_GETH=v0.4.5
IMAGE_TAG__KROMA_NODE=v1.3.3
IMAGE_TAG__KROMA_VALIDATOR=v1.3.3
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.2
IMAGE_TAG__KROMA_PROVER=v0.1.4

Expand Down
1 change: 1 addition & 0 deletions envs/mainnet/geth.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CHAIN_ID=255
BOOT_NODES=${KROMA_GETH__BOOT_NODES}
GETH_MINER_RECOMMIT=100ms
47 changes: 47 additions & 0 deletions upgrades/v1.3.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Kroma `v1.3.3` Upgrade Instructions

This document provides instructions to upgrade from Kroma `v1.3.1` to `v1.3.3`.
**No changes in flags have been made on this release, so you can simply change the tag for upgrade.**
For more details about `v1.3.3`, please refer the [release note](https://github.com/kroma-network/kroma/releases/tag/v1.3.3).
This upgrade mainly includes activation of fixed `KromaZKTrie` for better performance in terms of block processing.

## Guides for upgrade

### Stop Kroma

For upgrade, stop your Kroma full node or validator.
```bash
# for full node
docker compose --profile fullnode down

# for validator
docker compose --profile validator down
```

### Common

You need to update your `.env` file.

First, update the tag of `kroma-node` and `kroma-validator` docker image.
```
IMAGE_TAG__KROMA_GETH=v0.4.5
IMAGE_TAG__KROMA_NODE=v1.3.3
IMAGE_TAG__KROMA_VALIDATOR=v1.3.3
```

Also, a field is added to `geth.env`. Please make sure your `geth.eng` has the following field.
```
GETH_MINER_RECOMMIT=100ms
```

### Start Kroma

You can now start Kroma full node or validator with a new version.

```bash
# for full node
docker compose --profile fullnode up -d

# for validator
docker compose --profile validator up -d
```

0 comments on commit 81166b5

Please sign in to comment.