Skip to content

Commit 8cf9629

Browse files
authored
Create readme.md
1 parent 1e3f73a commit 8cf9629

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

FANTOM_TEST/readme.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# FANTOM TESTNET
2+
3+
Let's update and install the necessary packages:
4+
````
5+
sudo apt update && sudo apt upgrade -y
6+
sudo apt install build-essential jq wget git htop curl screen bc -y
7+
````
8+
Install Go:
9+
````
10+
ver="1.20.5"
11+
cd $HOME
12+
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
13+
sudo rm -rf /usr/local/go
14+
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
15+
rm "go$ver.linux-amd64.tar.gz"
16+
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
17+
source $HOME/.bash_profile
18+
````
19+
Install CLI:
20+
````
21+
cd $HOME
22+
git clone https://github.com/Fantom-foundation/go-opera.git
23+
cd ~/go-opera
24+
git checkout release/1.1.3-rc.5
25+
make
26+
mv ~/go-opera/build/opera /usr/local/bin/
27+
````
28+
Let's check the version (current as of October 2023 - v1.1.3-rc.5 commit: ace95a8a1d9a957116874a904fa725ac389abc1a):
29+
````
30+
opera version
31+
````
32+
Download a genesis file:
33+
````
34+
mkdir ~/.opera && cd ~/.opera
35+
wget https://download.fantom.network/testnet-6226-no-mpt.g
36+
cd $HOME
37+
````
38+
Create a service file:
39+
````
40+
sudo tee /etc/systemd/system/opera.service > /dev/null << EOF
41+
[Unit]
42+
Description=FANTOM TESTNET
43+
After=network-online.target
44+
[Service]
45+
User=$USER
46+
ExecStart=/usr/local/bin/opera --genesis /root/.opera/testnet-6226-no-mpt.g --syncmode snap --datadir /root/.opera/datadir --http --http.addr 0.0.0.0 --http.vhosts=* --http.corsdomain=* --ws --ws.addr 0.0.0.0 --ws.origins=* --datadir.minfreedisk=8096 --http.api="ftm,eth,abft,dag,rpc,web3,net,debug" --ws.api="ftm,eth,abft,dag,rpc,web3,net,debug" --cache 32152 --db.preset ldb-1
47+
Restart=on-failure
48+
RestartSec=10
49+
LimitNOFILE=65535
50+
[Install]
51+
WantedBy=multi-user.target
52+
EOF
53+
````
54+
Starting the node:
55+
````
56+
sudo systemctl daemon-reload
57+
sudo systemctl enable opera
58+
sudo systemctl restart opera
59+
````
60+
Checking the logs
61+
````
62+
sudo journalctl -u opera -f -o cat
63+
````

0 commit comments

Comments
 (0)