Skip to content

Commit

Permalink
Merge branch 'gprusak-testnet-registry' of http://github.com/matter-l…
Browse files Browse the repository at this point in the history
…abs/zksync-era into gprusak-testnet-registry
  • Loading branch information
pompon0 committed Oct 11, 2024
2 parents 5050235 + a08a9e7 commit 233c122
Show file tree
Hide file tree
Showing 8 changed files with 191 additions and 59 deletions.
5 changes: 2 additions & 3 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ check-tools: check-nodejs check-yarn check-rust check-sqlx-cli check-docker chec

# Check that contracts are checkout properly
check-contracts:
@if [ ! -d ../contracts/l1-contracts/lib/forge-std/foundry.toml ] || [ -z "$$(ls -A ../contracts/l1-contracts/lib/forge-std/foundry.toml)" ]; then \
@if [ -z "$$(ls -A ../contracts/l1-contracts/lib/forge-std/foundry.toml)" ]; then \
echo "l1-contracts git submodule is missing. Please re-download repo with 'git clone --recurse-submodules https://github.com/matter-labs/zksync-era.git'"; \
exit 1; \
fi
Expand All @@ -65,8 +65,7 @@ check-contracts:
prepare-contracts: check-tools check-contracts
@cd ../ && \
export ZKSYNC_HOME=$$(pwd) && \
export PATH=$$PATH:$${ZKSYNC_HOME}/bin && \
export PATH=$$PATH:$${ZKSYNC_HOME}/zkstack_cli/zkstackup && \
export PATH=$$PATH:$${ZKSYNC_HOME}/bin:$${ZKSYNC_HOME}/zkstack_cli/zkstackup && \
zkt || true && \
zk_supervisor contracts && \
mkdir -p contracts/l1-contracts/artifacts
Expand Down
4 changes: 1 addition & 3 deletions docker/zk-environment/20.04_amd64_cuda_11_8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ RUN wget -c https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2 && \

# Setup the environment
ENV ZKSYNC_HOME=/usr/src/zksync
ENV PATH="${ZKSYNC_HOME}/bin:${PATH}" \
PATH="${ZKSYNC_HOME}/zkstack_cli/zkstackup:${PATH}" \
PATH="${HOME}/.local/bin:${PATH}"
ENV PATH="${ZKSYNC_HOME}/bin:${ZKSYNC_HOME}/zkstack_cli/zkstackup:${HOME}/.local/bin:${PATH}"
ENV CI=1
RUN cargo install sccache
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
Expand Down
4 changes: 1 addition & 3 deletions docker/zk-environment/20.04_amd64_cuda_12_0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ RUN wget -c https://github.com/matter-labs/zksolc-bin/raw/main/linux-amd64/zksol

# Setup the environment
ENV ZKSYNC_HOME=/usr/src/zksync
ENV PATH="${ZKSYNC_HOME}/bin:${PATH}" \
PATH="${ZKSYNC_HOME}/zkstack_cli/zkstackup:${PATH}" \
PATH="${HOME}/.local/bin:${PATH}"
ENV PATH="${ZKSYNC_HOME}/bin:${ZKSYNC_HOME}/zkstack_cli/zkstackup:${HOME}/.local/bin:${PATH}"
ENV CI=1
RUN cargo install sccache
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
Expand Down
4 changes: 1 addition & 3 deletions docker/zk-environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ RUN wget -c https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2 && \

# Setup the environment
ENV ZKSYNC_HOME=/usr/src/zksync
ENV PATH="${ZKSYNC_HOME}/bin:${PATH}" \
PATH="${ZKSYNC_HOME}/zkstack_cli/zkstackup:${PATH}" \
PATH="${HOME}/.local/bin:${PATH}"
ENV PATH="${ZKSYNC_HOME}/bin:${ZKSYNC_HOME}/zkstack_cli/zkstackup:${HOME}/.local/bin:${PATH}"
ENV CI=1
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache

Expand Down
7 changes: 5 additions & 2 deletions docs/guides/external-node/00_quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Install `docker compose` and `Docker`

## Running ZKsync node locally

These commands start ZKsync node locally inside docker.

To start a mainnet instance, run:

```sh
Expand Down Expand Up @@ -34,9 +36,10 @@ cd docker-compose-examples
sudo docker compose --file testnet-external-node-docker-compose.yml down --volumes
```

You can see the status of the node (after recovery) in [local grafana dashboard](http://localhost:3000/dashboards).
### Observability

Those commands start ZKsync node locally inside docker.
You can see the status of the node (after recovery) in [local grafana dashboard](http://localhost:3000/dashboards).
You can also access a debug page with more information about the node [here](http://localhost:5000).

The HTTP JSON-RPC API can be accessed on port `3060` and WebSocket API can be accessed on port `3061`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 3,
"id": 2,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -1005,7 +1005,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Rate of RPC client requests, in packets per second.",
"description": "Rate of RPC client requests, in requests per second.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -1054,7 +1054,7 @@
}
]
},
"unit": "pps"
"unit": "reqps"
},
"overrides": []
},
Expand Down Expand Up @@ -1098,7 +1098,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Rate of RPC server responses, in packets per second.",
"description": "Rate of RPC server responses, in requests per second.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -1147,7 +1147,7 @@
}
]
},
"unit": "pps"
"unit": "reqps"
},
"overrides": []
},
Expand Down Expand Up @@ -1202,6 +1202,6 @@
"timezone": "",
"title": "Consensus",
"uid": "STAAEORNk",
"version": 4,
"version": 2,
"weekStart": ""
}
Loading

0 comments on commit 233c122

Please sign in to comment.