Installation

v.0.3.0

Minimum hardware Requirements #

CPU : 4x CPUs
Ram : 8GB RAM 
Storage: 100GB of storage (SSD or NVME)

Setting Variables

echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="test"" >> $HOME/.bash_profile
echo "export SYMPHONY_CHAIN_ID="symphony-testnet-3"" >> $HOME/.bash_profile
echo "export SYMPHONY_PORT="291"" >> $HOME/.bash_profile
echo "export DAEMON_NAME="symphonyd"" >> $HOME/.bash_profile
echo "export DAEMON_HOME=$HOME/.symphonyd"" >> $HOME/.bash_profile
source $HOME/.bash_profile

Install dependencies

sudo apt update && sudo apt upgrade -y && sudo apt-get install make build-essential gcc git jq chrony lz4 tmux unzip bc -y && sudo apt install -y curl git jq lz4 build-essential unzip

INSTALL GO

ver="1.20.5" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

# Adding Go's location to profile
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

Download and build binary

# Clone project repository
cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.3.0
make install


# Prepare Directories for Cosmovisor
mkdir -p $HOME/.symphonyd/cosmovisor/genesis/bin
cp $HOME/go/bin/symphonyd $HOME/.symphonyd/cosmovisor/genesis/bin/


# Create application symlinks
sudo ln -s $HOME/.symphonyd/cosmovisor/genesis $HOME/.symphonyd/cosmovisor/current -f
sudo ln -s $HOME/.symphonyd/cosmovisor/current/bin/symphonyd /usr/local/bin/symphonyd -f

Installing Cosmovisor

# Download and install Cosmovisor
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest

# Create service
sudo tee /etc/systemd/system/symphony.service > /dev/null << EOF
[Unit]
Description=symphony node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.symphonyd"
Environment="DAEMON_NAME=symphonyd"
Environment="UNSAFE_SKIP_BACKUP=true"


[Install]
WantedBy=multi-user.target
EOF

# Reload Daemon
sudo systemctl daemon-reload
sudo systemctl enable symphony.service

Initialize Node & Configuring Node Port

# Set node configuration
symphonyd init $MONIKER --chain-id symphony-testnet-3
symphonyd config node tcp://localhost:29157
symphonyd config keyring-backend file

# Set custom ports in client.toml
sed -i.bak -e "s%:26457%:${SYMPHONY_PORT}57%g"  $HOME/.symphonyd/config/client.toml

# Set custom ports in app.toml
sed -i.bak -e "s%:1317%:${SYMPHONY_PORT}17%g;
s%:8080%:${SYMPHONY_PORT}80%g;
s%:9090%:${SYMPHONY_PORT}90%g;
s%:9091%:${SYMPHONY_PORT}91%g;
s%:8545%:${SYMPHONY_PORT}45%g;
s%:8546%:${SYMPHONY_PORT}46%g;
s%:6065%:${SYMPHONY_PORT}65%g" $HOME/.symphonyd/config/app.toml

# Set custom ports in config.toml file
sed -i.bak -e "s%:26658%:${SYMPHONY_PORT}58%g;
s%:26657%:${SYMPHONY_PORT}57%g;
s%:6060%:${SYMPHONY_PORT}60%g;
s%:26656%:${SYMPHONY_PORT}56%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${SYMPHONY_PORT}56\"%;
s%:26660%:${SYMPHONY_PORT}60%g" $HOME/.symphonyd/config/config.toml

# Download genesis and addrbook
wget -O $HOME/.symphonyd/config/genesis.json https://files.nodeshub.online/testnet/symphony/genesis.json
wget -O $HOME/.symphonyd/config/addrbook.json https://files.nodeshub.online/testnet/symphony/addrbook.json


# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0note\"|" $HOME/.symphonyd/config/app.toml

# Set pruning
sed -i -e "s/^pruning =./pruning = "custom"/" $HOME/.symphonyd/config/app.toml sed -i -e "s/^pruning-keep-recent =./pruning-keep-recent = "100"/"
$HOME/.symphonyd/config/app.toml sed -i -e "s/^pruning-interval =./pruning-interval = "50"/" $HOME/.symphonyd/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.symphonyd/config/config.toml
  

Download Snapshot - Not Available Currently

# Back up priv_validator_state.json if needed
cp ~/.symphonyd/data/priv_validator_state.json  ~/.symphonyd/priv_validator_state.json

# On some tendermint chains
symphonyd unsafe-reset-all --home $HOME/.symphonyd --keep-addr-book

# On other tendermint chains
symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd --keep-addr-book

curl https://files.nodeshub.online/testnet/symphony/snapshot/symphony_snap.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.symphonyd

mv $HOME/.symphonyd/priv_validator_state.json.backup $HOME/.symphonyd/data/priv_validator_state.json
sudo systemctl restart symphony && sudo journalctl -u symphony -f -o cat

Start service and check the logs

sudo systemctl start symphony.service && sudo journalctl -u symphony -f -o cat

Last updated