You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/versioned_docs/version-v1.2.0/the_aztec_network/guides/run_nodes/how_to_run_sequencer_new.md
+32-23Lines changed: 32 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,11 +105,13 @@ Next you will need to define some environment variables that set important confi
105
105
These include:
106
106
107
107
-`DATA_DIRECTORY`: the folder where the data of the sequencer is stored
108
-
-`KEY_STORE_DIRECTORY`: the folder containing the `keystore.json` file created above
108
+
-`KEY_STORE_DIRECTORY`: can be a path to the file or directory where keystores are located. In our case it is the path to the folder containing the `keystore.json` file created above
109
109
-`LOG_LEVEL`: the desired level of logging for the sequencer. It defaults to info.
110
110
-`ETHEREUM_HOSTS`: The execution RPC endpoints
111
111
-`L1_CONSENSUS_HOST_URLS`: The consensus RPC endpoints
112
112
-`P2P_IP`: The IP address of this sequencer
113
+
-`P2P_PORT`: The port that P2P communication happens on
114
+
-`AZTEC_PORT`: The port that the sequencer node API is exposed on
113
115
114
116
Please paste this sample `.env` file into the empty one currently residing in your `aztec-sequencer` folder. Please note that we are assuming you are using the default ports of 8080 for the sequencer itself, and 40400 for p2p connectivity. If this is not the case, please overwrite the defaults below.
115
117
@@ -119,10 +121,17 @@ KEY_STORE_DIRECTORY=./keys
119
121
LOG_LEVEL=info
120
122
ETHEREUM_HOSTS=<your L1 execution endpoint, or a comma separated list if you have multiple>
121
123
L1_CONSENSUS_HOST_URLS=<your L1 consensus endpoint, or a comma separated list if you have multiple>
122
-
AZTEC_NODE_RPC_PORT=8080
123
-
AZTEC_NODE_P2P_PORT=40400
124
+
P2P_IP=<your external IP address>
125
+
P2P_PORT=40400
126
+
AZTEC_PORT=8080
124
127
```
125
128
129
+
:::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.
131
+
132
+
If you are unable to determine your public ip. Running the command`curl ipv4.icanhazip.com` can retrieve it for you.
133
+
:::
134
+
126
135
### Ensure auto-update / auto-restart is enabled
127
136
128
137
It is imperative that the built in auto-updating functionality of the sequencer is not disabled. The update-checker is a background module in the Aztec node that enables global coordination of updates. It allows the protocol team to:
@@ -136,9 +145,7 @@ This module ensures that upgrades and fixes propagate smoothly without requiring
136
145
137
146
Please ensure environment variables:
138
147
139
-
`AUTO_UPDATE_URL` remains unset, and
140
-
141
-
add `AUTO_UPDATE=config-and-version` to your `.env` file.
148
+
`AUTO_UPDATE_URL` and `AUTO_UPDATE` remain unset, as to take their default values (which are the s3 bucket being used to host the update information, and `config-and-version` respectively).
142
149
143
150
Because docker-compose does not respect pull policies on container restarts, to handle updates properly, add Watchtower to your stack by running:
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)[deadlink]. 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.
200
+
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.
192
201
193
202
Now, you can run `docker compose up` inside your `aztec-sequencer` folder to start the sequencer !
0 commit comments