forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrades local test network to cancun+deneb compatible one (ma…
…tter-labs#580) ## What ❔ Upgrades local testnet to `Cancun+Deneb` compatible one. So far: Cancun gets enabled: ``` 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] Merge configured: 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] - Hard-fork specification: https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/paris.md 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] - Network known to be merged: true 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] - Total terminal difficulty: 0 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] Post-Merge hard forks (timestamp based): 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] - Shanghai: @1701464272 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md) 2023-12-01 21:57:49 INFO [12-01|20:57:49.152] - Cancun: @1701464272 ``` New network has been built into CI workflows. ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `cargo spellcheck --cfg=./spellcheck/era.cfg --code 1`.
- Loading branch information
Showing
19 changed files
with
257 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd $ZKSYNC_HOME | ||
|
||
mkdir -p ./volumes/postgres ./volumes/geth/keystore ./volumes/prysm/beacon ./volumes/prysm/validator | ||
cp ./docker/prysm/config.yml ./volumes/prysm/config.yml | ||
cp ./docker/geth/jwtsecret ./volumes/geth/jwtsecret | ||
cp ./docker/geth/password.sec ./volumes/geth/password.sec | ||
cp ./docker/geth/keystore/UTC--2019-04-06T21-13-27.692266000Z--8a91dc2d28b689474298d91899f0c1baf62cb85b ./volumes/geth/keystore/ | ||
docker-compose -f docker-compose-local-genesis.yml up | ||
docker-compose -f docker-compose-local-genesis.yml rm -f | ||
docker-compose --profile runner up -d --wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,147 @@ | ||
version: '3.2' | ||
services: | ||
create-beacon-chain-genesis: | ||
image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl:latest" | ||
command: | ||
- testnet | ||
- generate-genesis | ||
- --fork=deneb | ||
- --num-validators=64 | ||
- --genesis-time-delay=5 | ||
- --output-ssz=/consensus/genesis.ssz | ||
- --chain-config-file=/prysm/config.yml | ||
- --geth-genesis-json-in=/geth/standard-dev.json | ||
- --geth-genesis-json-out=/execution/genesis.json | ||
volumes: | ||
- ./docker/geth:/geth/:ro | ||
- ./docker/prysm:/prysm/:ro | ||
- ./volumes/geth:/execution | ||
- ./volumes/prysm:/consensus | ||
geth-genesis: | ||
image: "ethereum/client-go:v1.13.5" | ||
command: --datadir=/execution init /execution/genesis.json | ||
volumes: | ||
- ./volumes/geth:/execution | ||
depends_on: | ||
create-beacon-chain-genesis: | ||
condition: service_completed_successfully | ||
geth: | ||
image: "matterlabs/geth:latest" | ||
image: "ethereum/client-go:v1.13.5" | ||
ports: | ||
- 8551:8551 | ||
- 8545:8545 | ||
- 8546:8546 | ||
volumes: | ||
- ./volumes/geth:/var/lib/geth/data | ||
- ./docker/geth/:/geth/:ro | ||
command: | ||
- --networkid=9 | ||
- --datadir=/var/lib/geth/data | ||
- --http | ||
- --http.api=engine,eth,web3,personal,net,debug | ||
- --http.addr=0.0.0.0 | ||
- --http.corsdomain=* | ||
- --http.vhosts=* | ||
- --ws | ||
- --ws.addr=0.0.0.0 | ||
- --ws.port=8546 | ||
- --ws.origins=* | ||
- --nodiscover | ||
- --authrpc.addr=0.0.0.0 | ||
- --authrpc.vhosts=* | ||
- --authrpc.jwtsecret=/var/lib/geth/data/jwtsecret | ||
- --allow-insecure-unlock | ||
- --unlock=0x8a91dc2d28b689474298d91899f0c1baf62cb85b | ||
- --password=/var/lib/geth/data/password.sec | ||
- --syncmode=full | ||
depends_on: | ||
beacon: | ||
condition: service_started | ||
geth-genesis: | ||
condition: service_completed_successfully | ||
beacon: | ||
image: "gcr.io/prylabs-dev/prysm/beacon-chain:v4.1.1" | ||
command: | ||
- --datadir=/consensus/beacon/ | ||
- --min-sync-peers=0 | ||
- --genesis-state=/consensus/genesis.ssz | ||
- --bootstrap-node= | ||
- --interop-eth1data-votes | ||
- --chain-config-file=/consensus/config.yml | ||
- --contract-deployment-block=0 | ||
- --chain-id=9 | ||
- --rpc-host=0.0.0.0 | ||
- --grpc-gateway-host=0.0.0.0 | ||
- --execution-endpoint=http://geth:8551 | ||
- --accept-terms-of-use | ||
- --jwt-secret=/execution/jwtsecret | ||
- --suggested-fee-recipient=0x8a91dc2d28b689474298d91899f0c1baf62cb85b | ||
- --minimum-peers-per-subnet=0 | ||
- --enable-debug-rpc-endpoints | ||
ports: | ||
- "8545:8545" | ||
- "8546:8546" | ||
- 4000:4000 | ||
- 3500:3500 | ||
- 8080:8080 | ||
- 6060:6060 | ||
- 9090:9090 | ||
volumes: | ||
- type: bind | ||
source: ./volumes/geth | ||
target: /var/lib/geth/data | ||
- ./volumes/prysm:/consensus | ||
- ./volumes/geth:/execution | ||
depends_on: | ||
create-beacon-chain-genesis: | ||
condition: service_completed_successfully | ||
validator: | ||
image: "gcr.io/prylabs-dev/prysm/validator:v4.1.1" | ||
command: | ||
- --beacon-rpc-provider=beacon:4000 | ||
- --datadir=/consensus/validatordata | ||
- --accept-terms-of-use | ||
- --interop-num-validators=64 | ||
- --interop-start-index=0 | ||
- --chain-config-file=/consensus/config.yml | ||
depends_on: | ||
beacon: | ||
condition: service_started | ||
volumes: | ||
- ./volumes/prysm:/consensus | ||
postgres: | ||
image: "postgres:14" | ||
ports: | ||
- "5432:5432" | ||
- 5432:5432 | ||
volumes: | ||
- type: bind | ||
source: ./volumes/postgres | ||
target: /var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
|
||
|
||
# This is specific to runner | ||
zk: | ||
image: "matterlabs/zk-environment:latest2.0-lightweight" | ||
depends_on: | ||
- geth | ||
- postgres | ||
- beacon | ||
- validator | ||
security_opt: | ||
- seccomp:unconfined | ||
command: tail -f /dev/null | ||
volumes: | ||
- .:/usr/src/zksync | ||
- /usr/src/cache:/usr/src/cache | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- CACHE_DIR=/usr/src/cache | ||
- SCCACHE_CACHE_SIZE=50g | ||
- SCCACHE_GCS_BUCKET=matterlabs-infra-sccache-storage | ||
- SCCACHE_GCS_SERVICE_ACCOUNT=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | ||
- SCCACHE_ERROR_LOG=/tmp/sccache_log.txt | ||
- SCCACHE_GCS_RW_MODE=READ_WRITE | ||
- CI=1 | ||
- GITHUB_WORKSPACE=$GITHUB_WORKSPACE | ||
env_file: | ||
- ./.env | ||
extra_hosts: | ||
- "host:host-gateway" | ||
profiles: | ||
- runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0xfad2709d0bb03bf0e8ba3c99bea194575d3e98863133d1af638ed056d1d59345 |
Oops, something went wrong.