-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsophon_tambn
88 lines (66 loc) · 2.62 KB
/
sophon_tambn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Pre-Setup: Install Required Tools
It is recommended to run Sophon Node on a Contabo VPS with Ubuntu for optimal stability and 24/7 uptime.
Check and Open Ports on Contabo VPS: Allow traffic for port 7007:
sudo ufw allow 7007
Update and Upgrade:
sudo apt update && sudo apt upgrade -y
Install Docker:
sudo apt install docker.io -y
Install tmux:
sudo apt install tmux -y
Enable Docker to Start on Boot:
sudo systemctl enable docker
Step 1: Stop and Remove the Previous Docker Container (Optional)
If you’ve previously set up the Sophon Light Node, remove it:
1.1. Stop the container:
docker stop sophon-light-node
1.2. Remove the container:
docker rm sophon-light-node
Step 2: Pull the Lastest Docker Image
Pull the latest version of the Sophon Light Node image:
docker pull sophonhub/sophon-light-node:v0.0.98
Step 3: Start a New tmux Session
3.1. Create and start a new tmux session named SophonYouName:
tmux new -s SophonYouName
3.2. Run the Docker command inside this session:
docker run -d --name sophon-light-node \
-e OPERATOR_ADDRESS=your_Operator_wallet \
-e DESTINATION_ADDRESS=your_wallet \
-e PERCENTAGE=1.00 \
-e PUBLIC_DOMAIN=http://Your_VPS_IP:7007 \
-e PORT=7007 \
-e AUTO_UPGRADE=true \
-p 7007:7007 \
--restart unless-stopped \
sophonhub/sophon-light-node
Example
docker run -d --name sophon-light-node \
-e OPERATOR_ADDRESS=0xfb4f3Aa9E7745Fc7B12b9776A92bD1F7A1Fb0Abf \
-e DESTINATION_ADDRESS=0xF3FFFF235DBBdAC80928e981338E9b0E604e704b \
-e PERCENTAGE=0.95 \
-e PUBLIC_DOMAIN=http://134.56.178.78:7007/ \
-e PORT=7007 \
-e AUTO_UPGRADE=true \
-p 7007:7007 \
--restart unless-stopped \
sophonhub/sophon-light-node
Step 4: Detach from tmux
Detach from the tmux session while keeping the process running:
Ctrl + B, then D
Step 5: Verify the Setup
5.1. Check Running Containers:
docker ps
5.2. Check Logs:
docker logs sophon-light-node
5.3. Verify Registration: Check if your node is registered on the Sophon network:
curl -X GET "https://monitor.sophon.xyz/nodes?operators=your_Operator_wallet"
if the status is TRUE, then you are done
Congratulations, you have successfully installed your Sophon Verifier Node!
STEP 6. How to Delegate:
Go to the official link: https://guardian.sophon.xyz/
Click “already have a running node operator address”.
Paste Operator Wallet Address:
Key Notes
Firewall Configuration: Ensure port 7007 is open using the steps above.
Public Domain: Use a fixed IP (retrieved with curl ifconfig.me) or domain for the PUBLIC_DOMAIN variable.
Auto-Upgrade: The -e AUTO_UPGRADE=true flag ensures your node automatically updates to the latest version.