Skip to content

Commit

Permalink
feat: upgrade Kroma Mainnet to v1.4.3 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHansLee authored Jun 20, 2024
1 parent fc993c1 commit c585f62
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 32 deletions.
10 changes: 5 additions & 5 deletions .env.mainnet
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Network to run the node on ("mainnet")
NETWORK_NAME=mainnet

IMAGE_TAG__KROMA_GETH=v0.5.2
IMAGE_TAG__KROMA_NODE=v1.4.2
IMAGE_TAG__KROMA_VALIDATOR=v1.4.2
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.2
IMAGE_TAG__KROMA_PROVER=v0.1.4
IMAGE_TAG__KROMA_GETH=v0.5.3
IMAGE_TAG__KROMA_NODE=v1.4.3
IMAGE_TAG__KROMA_VALIDATOR=v1.4.3
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.3
IMAGE_TAG__KROMA_PROVER=v0.1.6

# L1 RPC endpoint.
# You can check and use one of the list of RPC endpoints: https://chainlist.org/chain/1
Expand Down
2 changes: 1 addition & 1 deletion .env.sepolia
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IMAGE_TAG__KROMA_GETH=v0.5.3
IMAGE_TAG__KROMA_NODE=v1.4.3
IMAGE_TAG__KROMA_VALIDATOR=v1.4.3
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.3
IMAGE_TAG__KROMA_PROVER=v0.1.5
IMAGE_TAG__KROMA_PROVER=v0.1.6

# L1 RPC endpoint.
# You can check and use one of the list of RPC endpoints: https://chainlist.org/chain/11155111
Expand Down
22 changes: 11 additions & 11 deletions docker-compose.yml → docker-compose-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/geth.env
- envs/mainnet/geth.env
entrypoint:
- /bin/sh
- /.kroma/entrypoint.sh
Expand All @@ -19,9 +19,9 @@ services:
- 30304:30304/tcp
- 30303:30303/udp
volumes:
- db-${NETWORK_NAME}:/.kroma/db
- db-mainnet:/.kroma/db
- ./keys/jwt-secret.txt:/.kroma/keys/jwt-secret.txt
- ./config/${NETWORK_NAME}/genesis.json:/.kroma/config/genesis.json
- ./config/mainnet/genesis.json:/.kroma/config/genesis.json
- ./scripts/entrypoint.sh:/.kroma/entrypoint.sh
profiles:
- fullnode
Expand All @@ -36,7 +36,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/node.env
- envs/mainnet/node.env
ports:
- 9545:8545
- 7300:7300
Expand All @@ -45,7 +45,7 @@ services:
volumes:
- ./keys/p2p-node-key.txt:/.kroma/keys/p2p-node-key.txt
- ./keys/jwt-secret.txt:/.kroma/keys/jwt-secret.txt
- ./config/${NETWORK_NAME}/rollup.json:/.kroma/config/rollup.json
- ./config/mainnet/rollup.json:/.kroma/config/rollup.json
profiles:
- fullnode
- validator
Expand All @@ -59,7 +59,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/validator.env
- envs/mainnet/validator.env
profiles:
- validator
- validator+proxy
Expand All @@ -70,11 +70,11 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/prover-proxy.env
- envs/mainnet/prover-proxy.env
ports:
- 6000:6000
volumes:
- db-${NETWORK_NAME}:/.prover/proofs
- db-mainnet:/.prover/proofs
profiles:
- validator+proxy

Expand All @@ -86,15 +86,16 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/prover.env
- envs/mainnet/prover.env
ports:
- 3030:3030
entrypoint:
- /bin/sh
- -c
- './prover-server --endpoint 0.0.0.0:3030'
volumes:
- db-${NETWORK_NAME}:/usr/src/kroma-prover/out_proof
- ./data:/usr/src/kroma-prover/out_proof
- ./params/kzg_params:/usr/src/kroma-prover/kzg_params
profiles:
- prover

Expand Down Expand Up @@ -129,6 +130,5 @@ services:

volumes:
db-mainnet:
db-sepolia:
db-prometheus:
db-grafana:
19 changes: 9 additions & 10 deletions docker-compose-sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/geth.env
- envs/sepolia/geth.env
entrypoint:
- /bin/sh
- /.kroma/entrypoint.sh
Expand All @@ -19,9 +19,9 @@ services:
- 30304:30304/tcp
- 30303:30303/udp
volumes:
- db-${NETWORK_NAME}:/.kroma/db
- db-sepolia:/.kroma/db
- ./keys/jwt-secret.txt:/.kroma/keys/jwt-secret.txt
- ./config/${NETWORK_NAME}/genesis.json:/.kroma/config/genesis.json
- ./config/sepolia/genesis.json:/.kroma/config/genesis.json
- ./scripts/entrypoint.sh:/.kroma/entrypoint.sh
profiles:
- fullnode
Expand All @@ -36,7 +36,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/node.env
- envs/sepolia/node.env
ports:
- 9545:8545
- 7300:7300
Expand All @@ -45,7 +45,7 @@ services:
volumes:
- ./keys/p2p-node-key.txt:/.kroma/keys/p2p-node-key.txt
- ./keys/jwt-secret.txt:/.kroma/keys/jwt-secret.txt
- ./config/${NETWORK_NAME}/rollup.json:/.kroma/config/rollup.json
- ./config/sepolia/rollup.json:/.kroma/config/rollup.json
profiles:
- fullnode
- validator
Expand All @@ -59,7 +59,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/validator.env
- envs/sepolia/validator.env
profiles:
- validator
- validator+proxy
Expand All @@ -70,11 +70,11 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/prover-proxy.env
- envs/sepolia/prover-proxy.env
ports:
- 6000:6000
volumes:
- db-${NETWORK_NAME}:/.prover/proofs
- db-sepolia:/.prover/proofs
profiles:
- validator+proxy

Expand All @@ -86,7 +86,7 @@ services:
restart: unless-stopped
stop_grace_period: 50s
env_file:
- envs/${NETWORK_NAME}/prover.env
- envs/sepolia/prover.env
ports:
- 3030:3030
entrypoint:
Expand Down Expand Up @@ -129,7 +129,6 @@ services:
- monitoring

volumes:
db-mainnet:
db-sepolia:
db-prometheus:
db-grafana:
10 changes: 5 additions & 5 deletions upgrades/v1.4.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This document provides instructions to upgrade from Kroma `v1.4.2` to `v1.4.3`.

For more details about `v1.4.3`, please refer the [release note](https://github.com/kroma-network/kroma/releases/tag/v1.4.3).
This upgrade mainly includes upgrade of kroma-prover to `v0.1.5`, which replaces ZK backend to tachyon.
This upgrade mainly includes upgrade of kroma-prover to `v0.1.6`, which replaces ZK backend to tachyon.
It shortened the proof generation time by about 33%. For more details, please refer
[this](https://github.com/kroma-network/tachyon/releases/tag/v0.2.0).

Expand Down Expand Up @@ -45,7 +45,7 @@ IMAGE_TAG__KROMA_NODE=v1.4.3
IMAGE_TAG__KROMA_VALIDATOR=v1.4.3
IMAGE_TAG__KROMA_PROVER_PROXY=v0.1.3
IMAGE_TAG__KROMA_PROVER=v0.1.5
IMAGE_TAG__KROMA_PROVER=v0.1.6
```

### Start Kroma
Expand All @@ -62,10 +62,10 @@ docker compose --profile validator up -d
# for validator running with prover-proxy
docker compose --profile validator+proxy up -d

# for prover for Kroma Sepolia
# for prover
chmod +x setup_prover.sh
./setup_prover.sh
docker compose -f docker-compose-sepolia.yml --profile prover up -d
docker compose -f docker-compose-<network>.yml --profile prover up -d # network: mainnet or sepolia
```

If you plan to run a kroma-prover for Kroma Sepolia, make sure you run the kroma-prover after running the `setup_prover.sh` script.
If you plan to run a kroma-prover, make sure you run the kroma-prover after running the `setup_prover.sh` script.

0 comments on commit c585f62

Please sign in to comment.