Skip to content

Commit 904b425

Browse files
authored
Update production-node.md
Updating the file-path to fetch files for Cardona from, since this is different from where the mainnet and Goerli testnet files are found.
1 parent 46f8d04 commit 904b425

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/zkEVM/get-started/setup-nodes/production-node.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Let's start setting up our zkNode:
6363
1. Launch your command line/terminal and set the variables using below commands:
6464

6565
```bash
66-
# define the network("mainnet" or "testnet")
66+
# define the network("mainnet" or "cardona" or "testnet")
6767
ZKEVM_NET=testnet
6868

6969
# define installation path
@@ -73,20 +73,28 @@ Let's start setting up our zkNode:
7373
ZKEVM_CONFIG_DIR=./path_to_config
7474
```
7575

76-
1. Download and extract the artifacts. Note that you may need to [install unzip](https://formulae.brew.sh/formula/unzip) before running this command.
76+
2. Download and extract the artifacts. Note that you may need to [install unzip](https://formulae.brew.sh/formula/unzip) before running this command. Also, unlike the mainnet and the Goerli testnet that use the latest version, Cardona testnet uses a specific version.
7777

78-
```bash
78+
So use the next `curl` command specifically for Cardona:
79+
80+
```bash
81+
curl -L https://github.com/0xPolygonHermez/zkevm-node/releases/download/v0.5.5/$ZKEVM_NET.zip > $ZKEVM_NET.zip && unzip -o $ZKEVM_NET.zip -d $ZKEVM_DIR && rm $ZKEVM_NET.zip
82+
```
83+
84+
And use this second command for either mainnet or testnet (Goerli):
85+
86+
```bash
7987
curl -L https://github.com/0xPolygonHermez/zkevm-node/releases/latest/download/$ZKEVM_NET.zip > $ZKEVM_NET.zip && unzip -o $ZKEVM_NET.zip -d $ZKEVM_DIR && rm $ZKEVM_NET.zip
8088
```
8189

82-
3. Copy the `example.env` file with the environment parameters:
90+
4. Copy the `example.env` file with the environment parameters:
8391

8492
```sh
8593
cp $ZKEVM_DIR/$ZKEVM_NET/example.env $ZKEVM_CONFIG_DIR/.env
8694
8795
```
8896

89-
4. The `example.env` file must be modified according to your configurations.
97+
5. The `example.env` file must be modified according to your configurations.
9098

9199
Edit the .env file with your favourite editor (we'll use nano in this guide): ```nano $ZKEVM_CONFIG_DIR/.env```
92100
@@ -103,13 +111,13 @@ Let's start setting up our zkNode:
103111
ZKEVM_NODE_POOLDB_DATA_DIR = "/path/to/persistent/data/pooldb"
104112
```
105113
106-
5. To run the zkNode instance, run the following command:
114+
6. To run the zkNode instance, run the following command:
107115
108116
```bash
109117
sudo docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml up -d
110118
```
111119
112-
6. Run this command to check if everything went well and all the components are running properly:
120+
7. Run this command to check if everything went well and all the components are running properly:
113121
114122
```bash
115123
docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml ps
@@ -122,7 +130,7 @@ Let's start setting up our zkNode:
122130
- **zkevm-pool-db**
123131
- **zkevm-prover**
124132
125-
7. You should now be able to run queries to the JSON-RPC endpoint at `http://localhost:8545`.
133+
8. You should now be able to run queries to the JSON-RPC endpoint at `http://localhost:8545`.
126134
127135
## Testing
128136

0 commit comments

Comments
 (0)