Skip to content

Commit f11d8da

Browse files
authored
fix(docs): tidy up node section for testnet and assorted fixes (#17121)
2 parents fb46111 + ea423b0 commit f11d8da

File tree

18 files changed

+470
-434
lines changed

18 files changed

+470
-434
lines changed

docs/docs/the_aztec_network/guides/run_nodes/how_to_run_prover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ services:
265265
restart: unless-stopped
266266
```
267267
268-
**Note**: This configuration includes only essential settings. The `--network alpha-testnet` flag applies network-specific defaults. See the [CLI reference](../../reference/cli_reference.md) for all available options.
268+
**Note**: This configuration includes only essential settings. The `--network testnet` flag applies network-specific defaults. See the [CLI reference](../../reference/cli_reference.md) for all available options.
269269
270270
Start the prover:
271271

docs/docs/the_aztec_network/guides/run_nodes/how_to_run_sequencer.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ tags:
2222
- infrastructure
2323
---
2424

25-
This guide will go over the steps required to run a sequencer node on Aztec. It will also provide context to ensure users are comfortable with the steps they are taking.
25+
## Background
26+
27+
This guide covers the steps required to run a sequencer node on Aztec. It will also provide context to ensure users are comfortable with the steps they are taking.
2628

2729
The Aztec sequencer node is critical infrastructure responsible for ordering transactions and producing blocks.
2830

@@ -55,6 +57,7 @@ Furthermore, as this guide uses Docker compose, you will need to install it. Ple
5557

5658
Finally, this guide requires you to have endpoints of an L1 node stack of an execution and consensus client. If you do not have one set up, you can see a good guide on how to do that [here at Eth Docker](https://ethdocker.com/Usage/QuickStart).
5759

60+
5861
## Configure the sequencer
5962

6063
There are a few important things to note when setting up a sequencer. This guide will guide you in setting up and running a sequencer with a standard setup using Docker compose with a .env file.
@@ -70,19 +73,19 @@ Let's start by creating a new directory called `aztec-sequencer`, with two subdi
7073

7174
### Define private keys / accounts
7275

73-
A sequencer must hold and use private keys identifying it as a valid proposer or attester. This is done is by defining a keystore file.
76+
A sequencer must hold and use private keys identifying it as a valid proposer or attester. This is done by defining a keystore file.
7477

7578
An example keystore file is below. Copy this file and save it as `keystore.json` into your `aztec-sequencer/keys` folder.
7679

77-
```JSON
80+
```json
7881
{
79-
schemaVersion: 1,
80-
validators: [
82+
"schemaVersion": 1,
83+
"validators": [
8184
{
82-
attester: ["ETH_PRIVATE_KEY_0"]
83-
publisher: ["ETH_PRIVATE_KEY_1"],
84-
coinbase: "ETH_ADDRESS_2",
85-
feeRecipient: "AZTEC_ADDRESS_0"
85+
"attester": ["ETH_PRIVATE_KEY_0"],
86+
"publisher": ["ETH_PRIVATE_KEY_1"],
87+
"coinbase": "ETH_ADDRESS_2",
88+
"feeRecipient": "AZTEC_ADDRESS_0"
8689
}
8790
]
8891
}
@@ -126,7 +129,7 @@ AZTEC_PORT=8080
126129
```
127130
128131
:::tip
129-
You MUST forward your ports. Your router must send UDP and TCP traffic on the port specified by `AZTEC_NODE_P2P_PORT` to your IP address on your local network.
132+
Forward your ports. Your router must send UDP and TCP traffic on the port specified by `P2P_PORT` to your IP address on your local network.
130133
131134
Running the command `curl ipv4.icanhazip.com` can retrieve your public IP address for you.
132135
:::
@@ -200,7 +203,7 @@ Please note that we are setting only the necessary configuration for running thi
200203
201204
Now, you can run `docker compose up` inside your `aztec-sequencer` folder to start the sequencer!
202205
203-
To check if it is currently synced, which may take a few minutes, run this command and compare its output to any of the Aztec block explorers. (See [Aztec Scan](https://aztecscan.xyz/) or [Aztec Explorer](https://aztecexplorer.xyz/))
206+
To check if your sequencer is currently synced, which may take a few minutes, run this command and compare its output to any of the Aztec block explorers. (See [Aztec Scan](https://aztecscan.xyz/) or [Aztec Explorer](https://aztecexplorer.xyz/))
204207
205208
```sh
206209
curl -s -X POST -H 'Content-Type: application/json' \
@@ -212,4 +215,4 @@ http://localhost:8080 | jq -r ".result.proven.number"
212215
213216
After setting up your node you must explicitly request to be added to the sequencer set.
214217
215-
To complete this final step you can now head to [testnet.aztec.network](https://testnet.aztec.network) and complete the onboarding flow there utilizing zkPassport !
218+
To complete this final step you can now head to [testnet.aztec.network](https://testnet.aztec.network) and complete the onboarding flow there utilizing zkPassport!

docs/docs/the_aztec_network/index.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ title: Running a Full Node
55
description: A guide about how to run a full node on the Aztec network.
66
---
77

8+
## Background
9+
810
This guide will go over the steps required to run a full node on Aztec with a basic setup.
911

1012
A full node allows users to connect and interact with the network. It provides users an interface to send and receive transactions and state updates without relying on a third party.
@@ -24,18 +26,18 @@ Minimum hardware requirements:
2426

2527
Please note that these requirements are subject to change as the network throughput increases.
2628

27-
Along with the above minimum hardware requirements, it is assumed that the user has access to a performant ethereum RPC endpoint. Furthermore, this guide expects the user to be using a "standard" Linux distribution like Debian / Ubuntu when following along with the steps.
29+
Along with the above minimum hardware requirements, it is assumed that the user has access to a performant Ethereum RPC endpoint. Furthermore, this guide expects the user to be using a "standard" Linux distribution like Debian / Ubuntu when following along with the steps.
2830

29-
Overview
31+
## Overview
3032

3133
1. Install Docker
32-
2. Install aztec
34+
2. Install Aztec
3335
3. Configure the node
3436
4. Start the node!
3537

3638
## Install and set up Docker
3739

38-
Please ensure that docker is installed. If not, here is a convenient way to install it.
40+
Ensure Docker is installed. If not, here is a convenient way to install it.
3941
This uses the script at
4042
[https://get.docker.com/](https://get.docker.com/) to install the
4143
latest stable release of Docker on Linux:
@@ -45,7 +47,7 @@ curl -fsSL https://get.docker.com -o get-docker.sh
4547
sudo sh get-docker.sh
4648
```
4749

48-
Afterwards, the currently logged in user must be added to the docker group, so sudo is not needed to invoke docker.
50+
Afterwards, the currently logged in user must be added to the docker group, so `sudo` is not needed to invoke docker.
4951

5052
```console
5153
sudo groupadd docker
@@ -57,13 +59,13 @@ docker run hello-world
5759

5860
## Install Aztec
5961

60-
Run these commands to grab the aztec stack and add them to path.
62+
Run these commands to grab the Aztec stack and add them to path.
6163

6264
```console
6365
bash -i <(curl -s https://install.aztec.network)
6466
# Users should check that it is installed by using
6567
ls ~/.aztec/bin
66-
# aztec, aztec-up aztec-nargo and aztec-wallet should show up here
68+
# aztec, aztec-up, aztec-nargo and aztec-wallet should show up here
6769
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bashrc
6870
source ~/.bashrc
6971
```
@@ -88,7 +90,7 @@ Now that the correct version of the node is installed, it needs to be configured
8890
mkdir aztec-node && cd ./aztec-node
8991
```
9092

91-
Next, set some required configuration options. This guide will use `custom_named` environment variables (e.g. `AZTEC_NODE_P2P_IP`) but this is not necessary; you can pass valued directly into the command without specifying them as environment variables. The external IP address of the node, and the L1 RPC endpoints must be defined when starting a node. Also, configuration defining the network version should be set, as this will let the node define the other required protocol variables, like rollup address, registry address etc. Please note that the specified RPC endpoints must support high throughput, otherwise the node will suffer degraded performance.
93+
Next, set some required configuration options. This guide will use `custom_named` environment variables (e.g. `AZTEC_NODE_P2P_IP`) but this is not necessary; you can pass values directly into the command without specifying them as environment variables. The external IP address of the node, and the L1 RPC endpoints must be defined when starting a node. Also, configuration defining the network version should be set, as this will let the node define the other required protocol variables, like rollup address, registry address etc. Note that the specified RPC endpoints must support high throughput, otherwise the node will suffer degraded performance.
9294

9395
```console
9496
# If the external IP of the machine the node is running on is unknown, it can be obtained by running `curl ifconfig.me`.
@@ -110,16 +112,16 @@ To verify the node is working, run these commands in another terminal window:
110112

111113
```console
112114
# Rule 1: For HTTP traffic on port 8080
113-
curl -X POST --data '{"method": "node_getL2Tips"}'
115+
curl -X POST http://localhost:8080 --data '{"method": "node_getL2Tips"}'
114116
# should return JSON data in the format of "{"result":{"latest":{"number":"...}}}"
115117

116118
# Rule 2: For TCP traffic on port 40400 (set by default)
117-
nc -vz IP 40400
118-
# should return "Connection to IP 40400 port [tcp/*] succeeded!" if port open
119+
nc -vz [YOUR_EXTERNAL_IP] 40400
120+
# should return "Connection to [YOUR_EXTERNAL_IP] 40400 port [tcp/*] succeeded!" if port open
119121

120122
# Rule 3: For UDP traffic on port 40400 (set by default)
121-
nc - vu IP 40400
122-
# should return "Connection to IP 40400 port [udp/*] succeeded!" if port open
123+
nc -vu [YOUR_EXTERNAL_IP] 40400
124+
# should return "Connection to [YOUR_EXTERNAL_IP] 40400 port [udp/*] succeeded!" if port open
123125
```
124126

125127
Congrats, the node should be up, running, and connected to the network!

docs/docs/the_aztec_network/reference/reacting_to_upgrades.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ title: Reacting to Upgrades
44
description: Learn how to react to upgrades on the Aztec network.
55
---
66

7-
This is a guide for sequencer operators to understand how to react to protocol upgrades. To learn about how upgrades work, read the [concept section](../concepts/governance/upgrades.md).
8-
7+
This is a guide for sequencer operators to understand how to react to protocol upgrades.
98
## Sequencers signal for governance upgrades
109

1110
To signal for governance upgrades, sequencers must set their `GOVERNANCE_PROPOSER_PAYLOAD` on their sequencer node to the address of a `payload`. This will register their signal with the GovernanceProposer contract.

docs/sidebars.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,7 @@ const sidebar = {
184184
{
185185
type: "doc",
186186
id: "the_aztec_network/reference/cli_reference",
187-
},
188-
{
189-
type: "html",
190-
value: '<span class="sidebar-divider" />',
191-
},
192-
{
193-
type: "html",
194-
value: '<span class="sidebar-title">Concepts</span>',
195-
className: "sidebar-title",
196-
},
197-
{
198-
type: "autogenerated",
199-
dirName: "the_aztec_network/concepts",
200-
},
187+
}
201188
],
202189
};
203190

docs/versioned_docs/version-v1.2.0/the_aztec_network/guides/run_nodes/how_to_run_prover.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ services:
237237
- start
238238
- --prover-broker
239239
- --network
240-
- alpha-testnet
240+
- testnet
241241
environment:
242242
DATA_DIRECTORY: /var/lib/data
243243
ETHEREUM_HOSTS: ${ETHEREUM_HOSTS}
@@ -255,7 +255,7 @@ services:
255255
- start
256256
- --prover-agent
257257
- --network
258-
- alpha-testnet
258+
- testnet
259259
environment:
260260
PROVER_AGENT_COUNT: ${PROVER_AGENT_COUNT}
261261
PROVER_AGENT_POLL_INTERVAL_MS: ${PROVER_AGENT_POLL_INTERVAL_MS}
@@ -265,7 +265,7 @@ services:
265265
restart: unless-stopped
266266
```
267267
268-
**Note**: This configuration includes only essential settings. The `--network alpha-testnet` flag applies network-specific defaults. See the [CLI reference](../../reference/cli_reference.md) for all available options.
268+
**Note**: This configuration includes only essential settings. The `--network testnet` flag applies network-specific defaults. See the [CLI reference](../../reference/cli_reference.md) for all available options.
269269
270270
Start the prover:
271271

docs/versioned_docs/version-v1.2.0/the_aztec_network/guides/run_nodes/how_to_run_sequencer.md

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ tags:
2222
- infrastructure
2323
---
2424

25-
This guide will go over the steps required to run a sequencer node on Aztec. It will also provide context to ensure users are comfortable with the steps they are taking.
25+
## Background
26+
27+
This guide covers the steps required to run a sequencer node on Aztec. It will also provide context to ensure users are comfortable with the steps they are taking.
2628

2729
The Aztec sequencer node is critical infrastructure responsible for ordering transactions and producing blocks.
2830

@@ -71,19 +73,19 @@ Let's start by creating a new directory called `aztec-sequencer`, with two subdi
7173

7274
### Define private keys / accounts
7375

74-
A sequencer must hold and use private keys identifying it as a valid proposer or attester. This is done is by defining a keystore file.
76+
A sequencer must hold and use private keys identifying it as a valid proposer or attester. This is done by defining a keystore file.
7577

7678
An example keystore file is below. Copy this file and save it as `keystore.json` into your `aztec-sequencer/keys` folder.
7779

78-
```JSON
80+
```json
7981
{
80-
schemaVersion: 1,
81-
validators: [
82+
"schemaVersion": 1,
83+
"validators": [
8284
{
83-
attester: ["ETH_PRIVATE_KEY_0"]
84-
publisher: ["ETH_PRIVATE_KEY_1"],
85-
coinbase: "ETH_ADDRESS_2",
86-
feeRecipient: "AZTEC_ADDRESS_0"
85+
"attester": ["ETH_PRIVATE_KEY_0"],
86+
"publisher": ["ETH_PRIVATE_KEY_1"],
87+
"coinbase": "ETH_ADDRESS_2",
88+
"feeRecipient": "AZTEC_ADDRESS_0"
8789
}
8890
]
8991
}
@@ -127,7 +129,7 @@ AZTEC_PORT=8080
127129
```
128130
129131
:::tip
130-
You MUST forward your ports. Your router must send UDP and TCP traffic on the port specified by `AZTEC_NODE_P2P_PORT` to your IP address on your local network.
132+
Forward your ports. Your router must send UDP and TCP traffic on the port specified by `P2P_PORT` to your IP address on your local network.
131133
132134
Running the command `curl ipv4.icanhazip.com` can retrieve your public IP address for you.
133135
:::
@@ -162,46 +164,46 @@ Now that you have done all the setup, create a Docker compose file named `compos
162164
163165
```yaml
164166
services:
165-
aztec-sequencer:
166-
image: "aztecprotocol/aztec:1.2.1"
167-
container_name: "aztec-sequencer"
168-
ports:
169-
- ${AZTEC_PORT}:${AZTEC_PORT}
170-
- ${P2P_PORT}:${P2P_PORT}
171-
- ${P2P_PORT}:${P2P_PORT}/udp
172-
volumes:
173-
- ${DATA_DIRECTORY}:/var/lib/data
174-
- ${KEY_STORE_DIRECTORY}:/var/lib/keystore
175-
environment:
176-
KEY_STORE_DIRECTORY: /var/lib/keystore
177-
DATA_DIRECTORY: /var/lib/data
178-
LOG_LEVEL: ${LOG_LEVEL}
179-
ETHEREUM_HOSTS: ${ETHEREUM_HOSTS}
180-
L1_CONSENSUS_HOST_URLS: ${L1_CONSENSUS_HOST_URLS}
181-
P2P_IP: ${P2P_IP}
182-
P2P_PORT: ${P2P_PORT}
183-
AZTEC_PORT: ${AZTEC_PORT}
184-
entrypoint: node /usr/src/yarn-project/aztec/dest/bin/index.js
185-
command: >-
186-
start
187-
--network alpha-testnet
188-
--node
189-
--archiver
190-
--sequencer
191-
networks:
192-
- aztec
193-
restart: always
167+
aztec-sequencer:
168+
image: "aztecprotocol/aztec:latest"
169+
container_name: "aztec-sequencer"
170+
ports:
171+
- ${AZTEC_PORT}:${AZTEC_PORT}
172+
- ${P2P_PORT}:${P2P_PORT}
173+
- ${P2P_PORT}:${P2P_PORT}/udp
174+
volumes:
175+
- ${DATA_DIRECTORY}:/var/lib/data
176+
- ${KEY_STORE_DIRECTORY}:/var/lib/keystore
177+
environment:
178+
KEY_STORE_DIRECTORY: /var/lib/keystore
179+
DATA_DIRECTORY: /var/lib/data
180+
LOG_LEVEL: ${LOG_LEVEL}
181+
ETHEREUM_HOSTS: ${ETHEREUM_HOSTS}
182+
L1_CONSENSUS_HOST_URLS: ${L1_CONSENSUS_HOST_URLS}
183+
P2P_IP: ${P2P_IP}
184+
P2P_PORT: ${P2P_PORT}
185+
AZTEC_PORT: ${AZTEC_PORT}
186+
entrypoint: node /usr/src/yarn-project/aztec/dest/bin/index.js
187+
command: >-
188+
start
189+
--network testnet
190+
--node
191+
--archiver
192+
--sequencer
193+
networks:
194+
- aztec
195+
restart: always
194196

195197
networks:
196-
aztec:
197-
name: aztec
198+
aztec:
199+
name: aztec
198200
```
199201
200202
Please note that we are setting only the necessary configuration for running this sequencer. The full list of settings and flags can be explored here at the [cli reference](../../reference/cli_reference.md). A lot of these options are preset to defaults by the `--network` flag above. This downloads defaults for the specified network and applies them to the node.
201203
202204
Now, you can run `docker compose up` inside your `aztec-sequencer` folder to start the sequencer!
203205
204-
To check if it is currently synced, which may take a few minutes, run this command and compare its output to any of the Aztec block explorers. (See [Aztec Scan](https://aztecscan.xyz/) or [Aztec Explorer](https://aztecexplorer.xyz/))
206+
To check if your sequencer is currently synced, which may take a few minutes, run this command and compare its output to any of the Aztec block explorers. (See [Aztec Scan](https://aztecscan.xyz/) or [Aztec Explorer](https://aztecexplorer.xyz/))
205207
206208
```sh
207209
curl -s -X POST -H 'Content-Type: application/json' \
@@ -213,4 +215,4 @@ http://localhost:8080 | jq -r ".result.proven.number"
213215
214216
After setting up your node you must explicitly request to be added to the sequencer set.
215217
216-
To complete this final step you can now head to [testnet.aztec.network](https://testnet.aztec.network) and complete the onboarding flow there utilizing zkPassport !
218+
To complete this final step you can now head to [testnet.aztec.network](https://testnet.aztec.network) and complete the onboarding flow there utilizing zkPassport!

0 commit comments

Comments
 (0)