Run a Testnet read node

Requirements

  • Minimum hardware requirements: AWS EC2 m5.large with 8GB RAM, 2 vCPUs and at least 300GB of Amazon EBS General Purpose SSD (gp2) storage (or equivalent).
  • We would recommend going with Ubuntu Server 20.04 LTS (64-bit).

Network Settings

Open up port 22 for SSH, as well as port 7946 for both TCP and UDP traffic. A custom port can be used with "--port <port>" flag when run your opera node.

Install Required Tools

You are still logged in as the new user via SSH. Now we are going to install Go and Opera.
First, install the required build tools:
1
# Install build-essential
2
(validator)$ sudo apt-get install -y build-essential
3
# Install go
4
(validator)$ wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz
5
(validator)$ sudo tar -xvf go1.17.7.linux-amd64.tar.gz
6
(validator)$ sudo mv go /usr/local
7
# Export go paths
8
(validator)$ vi ~/.bash_aliases
9
# Append the following lines
10
export GOROOT=/usr/local/go
11
export GOPATH=$HOME/go
12
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
13
#
14
source ~/.bash_aliases
Copied!

Run a read node

You can run your read node using go-opera 1.1.0-rc.4 (full sync mode), or using go-opera 1.1.1-rc.1 (either snap or full sync mode).

First approach

1
# Install Opera
2
(validator)$ git clone https://github.com/Fantom-foundation/go-opera.git
3
(validator)$ cd go-opera/
4
(validator)$ git checkout release/1.1.0-rc.4
5
(validator)$ make
Copied!
Validate your Opera installation:
1
$./build/opera help
2
3
VERSION:
4
1.1.0-rc.4
Copied!
Start the Opera read-only node using old genesis file 'testnet.g'.
1
# Start opera node
2
(validator)$ cd build/
3
(validator)$ wget https://opera.fantom.network/testnet.g
4
(validator)$ nohup ./opera --genesis testnet.g --nousb &
Copied!

Second approach

1
# Install Opera
2
(validator)$ git clone https://github.com/Fantom-foundation/go-opera.git
3
(validator)$ cd go-opera/
4
(validator)$ git checkout release/1.1.1-rc.1
5
(validator)$ make
Copied!
Validate your Opera installation:
1
$./build/opera help
2
3
VERSION:
4
1.1.1-rc.1
Copied!
Download a genesis file from this list of genesis files.
1
# Start opera node
2
(validator)$ cd build/
3
(validator)$ wget https://download.fantom.network/testnet-6226-no-mpt.g
4
(validator)$ nohup ./opera --genesis testnet-6226-no-mpt.g --nousb &
Copied!
You can start a node with a syncmode flag. There are two possible options:
  • "--syncmode snap", and
  • "--syncmode full" (by default).
For archive node and validator node, you should use full syncmode.