🔌Installation
Last updated
Last updated
Components | Minimum Requirements |
---|---|
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
cd $HOME
VER="1.23.0"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
echo "export SYMPHONY_PORT="35"" >> $HOME/.bash_profile
source $HOME/.bash_profile
cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.4.1
make build
mkdir -p ~/.symphonyd/cosmovisor/upgrades/0.4.1/bin
mv $HOME/symphony/build/symphonyd ~/.symphonyd/cosmovisor/upgrades/0.4.1/bin/
sudo ln -s ~/.symphonyd/cosmovisor/upgrades/0.4.1 ~/.symphonyd/cosmovisor/current -f
sudo ln -s ~/.symphonyd/cosmovisor/current/bin/symphonyd /usr/local/bin/symphonyd -f
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.7.0
cd
sudo tee /etc/systemd/system/symphonyd.service > /dev/null << EOF
[Unit]
Description=symphony node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.symphonyd
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=${HOME}/.symphonyd"
Environment="DAEMON_NAME=symphonyd"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/.symphonyd/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable symphonyd
symphonyd init "NODE-NAME" --chain-id symphony-testnet-4
sed -i -e '/^chain-id = /c\chain-id = "symphony-testnet-4"' $HOME/.symphonyd/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${SYMPHONY_PORT}657\"|" $HOME/.symphonyd/config/client.toml
sed -i -e '/^keyring-backend = /c\keyring-backend = "test"' $HOME/.symphonyd/config/client.toml
curl https://raw.githubusercontent.com/MictoNode/symphony-cosmos/refs/heads/main/genesis.json -o ~/.symphonyd/config/genesis.json
curl https://raw.githubusercontent.com/MictoNode/symphony-cosmos/main/addrbook.json -o ~/.symphonyd/config/addrbook.json
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${SYMPHONY_PORT}657\"|" $HOME/.symphonyd/config/client.toml
sed -i.bak -e "s%:1317%:${SYMPHONY_PORT}317%g;
s%:8080%:${SYMPHONY_PORT}080%g;
s%:9090%:${SYMPHONY_PORT}090%g;
s%:9091%:${SYMPHONY_PORT}091%g;
s%:8545%:${SYMPHONY_PORT}545%g;
s%:8546%:${SYMPHONY_PORT}546%g;
s%:6065%:${SYMPHONY_PORT}065%g" $HOME/.symphonyd/config/app.toml
sed -i.bak -e "s%:26658%:${SYMPHONY_PORT}658%g;
s%:26657%:${SYMPHONY_PORT}657%g;
s%:6060%:${SYMPHONY_PORT}060%g;
s%:26656%:${SYMPHONY_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${SYMPHONY_PORT}656\"%;
s%:26660%:${SYMPHONY_PORT}660%g" $HOME/.symphonyd/config/config.toml
SEEDS="4660f4c136d4cf916d65b952a1ab67095fe1311f@65.21.234.111:25656"
PEERS="eea2dc7e9abfd18787d4cc2c728689ad658cd3a2@104.154.135.225:26656,ed33b91ef0743a35206890044cbaac99c8241e26@94.130.143.184:21656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.symphonyd/config/config.toml
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 = \"10\"/" $HOME/.symphonyd/config/app.toml
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025note"|g' $HOME/.symphonyd/config/app.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.symphonyd/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.symphonyd/config/config.toml
symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd
if curl -s --head curl https://snap.vinjan.xyz/symphony/latest.tar.lz4 | head -n 1 | grep "200" > /dev/null; then
curl https://snap.vinjan.xyz/symphony/latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.symphonyd
else
echo no have snap
fi
sudo systemctl start symphonyd && sudo journalctl -u symphonyd -f -o cat
journalctl -u symphonyd -f -o cat
don't forget to backup the wallet words!
Reminder: You can't create a validator without Sync. You must have to catch the latest block.
Save your pubkey
symphonyd tendermint show-validator
rm -rf /root/validator.json
nano /root/validator.json
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey.......},
"amount": "1000000note",
"moniker": "",
"identity": "",
"website": "",
"security": "",
"details": "",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
symphonyd tx staking create-validator $HOME/validator.json \
--from=wallet-name \
--chain-id=symphony-testnet-4 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
-y
Find your valoper address with the code below
cd $HOME
sudo systemctl stop symphonyd
sudo systemctl disable symphonyd
sudo rm -rf /etc/systemd/system/symphonyd.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/symphonyd
sudo rm -f $(which symphonyd)
sudo rm -rf $HOME/.symphonyd $HOME/symphony
sed -i "/SYMPHONY_PORT_/d" $HOME/.bash_profile
local_height=$(curl -s localhost:${SYMPHONY_PORT}657/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://symphony-testnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
Your node height - the current block of your node
Network height - the last block of the network
Blocks left - how many blocks your node has left to sync.
symphonyd keys add
symphonyd keys add --recover
symphonyd tx staking delegate $(symphonyd keys show --bech val -a) amount000000note \
--chain-id symphony-testnet-4 \
--from "" \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
--node=http://localhost:${SYMPHONY_PORT}657 \
-y
symphonyd tx staking edit-validator \
--chain-id symphony-testnet-4 \
--commission-rate 0.05 \
--new-moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from "" \
--node http://localhost:${SYMPHONY_PORT}657 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
-y
CPU
6
RAM
32 GB
STORAGE
200 GB SSD