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
_Note: The Base archive node consumes 3.5 TB of space on May 12.2024_
15
+
{% endhint %}
10
16
11
17
## Base 🔵
12
18
@@ -44,6 +50,10 @@ curl ifconfig.me
44
50
45
51
Set an A record for a domain, you need to access the domain's DNS settings and create an A record that points to the IP address of the host machine. This configuration allows users to reach your domain by resolving the domain name to the specific IP address associated with your host machine.
46
52
53
+
{% hint style="info" %}
54
+
_This step can be skipped if you aren't going to use a domain name to access your RPC. The guide specifically covers the setup using a domain generated on the server_
It's required to initialize Geth if you plan to sync from scratch.
118
+
119
+
If you are going to sync using the snapshot, you shouldn't need to initialize Geth. The docker-compose would do the trick
120
+
{% endhint %}
121
+
99
122
This command runs a Docker container using the `op-geth` image. It mounts two volumes: `base_geth_data` to `/data` inside the container and `/root/base/config` to `/config`. The container then initializes the Ethereum client with a genesis file located at `/config/genesis-l2.json` using the `--datadir` option to specify the data directory as `/data`
100
123
101
124
```
@@ -121,6 +144,8 @@ cd ~/base
121
144
sudo nano docker-compose.yml
122
145
```
123
146
147
+
Assuming that this guide is current, you’ll be able to paste the following into the docker-compose.yml and then ctrl + x and y to save file. The more likely scenario is that this .yml template is a bit outdated and you will need to update the version under the opnode > image as well as the geth > image sections. You can find the latest releases of the op-node and geth nodes here: [https://docs.optimism.io/builders/node-operators/releases](https://docs.optimism.io/builders/node-operators/releases).
This is an optional step based on whether you want to sync the node from scratch or sync the node from a snapshot. Based on InfraDAO’s experience, we recommend downloading a snapshot and syncing the node from that snapshot. Syncing the node from the scratch took around two weeks while the snapshot took requires 9-10 hours to download, 4-6 hours to unzip, and roughly 24 hours to sync from that point.
305
+
{% endhint %}
306
+
307
+
To sync from a snapshot, visit the Base Docs to validate the recommended approach for restoring from snapshot: [https://docs.base.org/tutorials/run-a-base-node/#snapshots](https://docs.base.org/tutorials/run-a-base-node/#snapshots). Next, in the home directory of your (i.e. the `base` folder), create a folder named `geth-data`. If you already have this folder, remove it to clear the existing state and then recreate it. Next, run the following code and wait for the operation to complete.
308
+
309
+
As downloading a snapshot takes about 9 hrs it is better to run it in a screen session
310
+
311
+
```
312
+
screen -S archive
313
+
```
314
+
315
+
Use `aria2c` to download the most recent Mainnet Archive Snapshot
_press `ctrl+A and D` to return to previous screen and continue installation_
323
+
324
+
```bash
325
+
screen -r archive #will bring you back to monitor downloading progress
326
+
```
327
+
328
+
You'll then need to untar the downloaded snapshot and place the geth subfolder inside of it in the geth-data folder you created (unless you changed the location of your data directory)
329
+
330
+
```bash
331
+
tar -xvzf filename.tar.gz
332
+
# tar -xvzf base-mainnet-archive-1712388985.tar.gz
333
+
```
334
+
335
+
Next, you’ll need to move the snapshot to the where the geth data was stored in the docker container. If you initially tried to sync the node from scratch and are now trying with a snapshot:
0 commit comments