Skip to content

winsnip/Symphony-chain-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

Orchestra Labs Logo

Ubuntu
Node Status

Explorer

https://testnet.ping.pub/symphony/staking

Symphony Node Setup

Instruksi ini menjelaskan cara mengatur node Symphony pada server Ubuntu.

Spesifikasi Server

  • CPU: 4 Core
  • RAM: 8 GB
  • Disk: 160 GB SSD
  • OS: Ubuntu 22.04
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Instalasi Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Instalasi Symphony Node

cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony.git
cd symphony
git checkout v0.4.1
make install
symphonyd version

Inisialisasi Node

Ganti NodeName dengan moniker Anda sendiri.

symphonyd init NodeName --chain-id=symphony-testnet-4

Unduh Genesis

wget -O $HOME/.symphonyd/config/genesis.json https://raw.githubusercontent.com/Orchestra-Labs/symphony/refs/heads/main/networks/symphony-testnet-4/genesis.json

Unduh Addrbook

wget -O $HOME/.symphonyd/config/addrbook.json https://raw.githubusercontent.com/vinjan23/Testnet.Guide/refs/heads/main/Symphony/addrbook.json

Buat Service

sudo tee /etc/systemd/system/symphonyd.service > /dev/null <<EOF
[Unit]
Description=symphonyd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which symphonyd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable symphonyd

Buat Wallet

symphonyd keys add wallet

Import wallet

symphonyd keys add wallet --recover

Luncurkan Node

sudo systemctl restart symphonyd
sudo journalctl -u symphonyd -f -o cat

Check Sync ( If False than go to create validator )

symphonyd status 2>&1 | jq

Create Validator

symphonyd tendermint show-validator
nano /root/.symphonyd/validator.json
{
  "pubkey": (Pubkey_xxx),
  "amount": "5000000note",
  "moniker": "",
  "identity": "",
  "website": "",
  "security": "",
  "details": "",
  "commission-rate": "0.05",
  "commission-max-rate": "0.2",
  "commission-max-change-rate": "0.01",
  "min-self-delegation": "1"
}

lengkapi data dan paste di file validator.json lalu ctrl x y enter

Rwgister Validator

symphonyd tx staking create-validator $HOME/.symphonyd/validator.json \
--from=wallet \
--chain-id=symphony-testnet-4 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto

Start Node

sudo systemctl daemon-reload
sudo systemctl enable symphonyd
sudo systemctl restart symphonyd
sudo journalctl -u symphonyd -f -o cat

cek status

symphonyd status 2>&1 | jq

⛓️ Oracle Installation Guide

This installation is exclusive to those who installed it from me. Those who install it elsewhere may encounter errors.


➡️ Prerequisites

Run the following commands to prepare your system:

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
sudo apt-get update && apt-get install -y libssl-dev

###Install Python 3.10:

sudo apt update
sudo apt install python3.10
sudo apt install python3.10-venv

➡️ Installation Steps

cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.4.1
make build

Clone the Symphony Oracle Voter repository:

cd $HOME
git clone https://github.com/cmancrypto/symphony-oracle-voter.git

Switch to the required version:

cd symphony-oracle-voter
git checkout v0.0.5

If you are going to use your own RPC/API, edit /root/.symphonyd/config/config.toml:

indexer = "kv"

Don't forget to add your Symphony address and valoper address.

1. Option --Default-- (keyring backend = os)

Create an .env file:

cat <<EOF > .env
VALIDATOR_ADDRESS= symphonyvaloperxxx
VALIDATOR_ACC_ADDRESS= symphonyxxx
KEY_PASSWORD= walletpassword;
KEY_BACKEND = os
SYMPHONY_LCD= https://api-symphonyd.vinjan.xyz # or http://localhost:35317 (default port 1317)
TENDERMINT_RPC= https://rpc-symphonyd.vinjan.xyz # or http://localhost:35657 (default port 26657)
EOF

2. Option --My Guide-- (keyring backend = test)

Create an .env file:

cat <<EOF > .env
VALIDATOR_ADDRESS= symphonyvaloperxxx
VALIDATOR_ACC_ADDRESS= symphonyxxx
KEY_BACKEND = test
SYMPHONY_LCD= https://api-symphonyd.vinjan.xyz # or http://localhost:35317 (default port 1317)
TENDERMINT_RPC= https://rpc-symphonyd.vinjan.xyz # or http://localhost:35657 (default port 26657)
EOF

➡️ Proceed After Choosing Option 1 or Option 2

Set up the Python environment:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
deactivate

➡️ Service File

Create a systemd service for the Oracle:

sudo tee /etc/systemd/system/oracle.service > /dev/null << EOF
[Unit]
Description=Symphony Oracle
After=network.target

[Service]
# Environment variables
Environment="SYMPHONYD_PATH=/root/symphony/build/symphonyd"
Environment="PYTHON_ENV=production"
Environment="LOG_LEVEL=INFO"
Environment="DEBUG=false"

# Service configuration
Type=simple
User=root
WorkingDirectory=/root/symphony-oracle-voter/
ExecStart=/root/symphony-oracle-voter/venv/bin/python3 -u /root/symphony-oracle-voter/main.py
Restart=always
RestartSec=3
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
EOF

Reload systemd and enable the service:

sudo systemctl daemon-reload
sudo systemctl enable oracle.service
sudo systemctl start oracle.service

Check the logs:

sudo journalctl -u oracle -f -o cat

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published