Installation
Prerequiretes
Hardware
Minimun Spesification
CPU
6 Cores
RAM
16 GB
Disk
500GB SSD
Installation
Install Go
wget https://go.dev/dl/go1.23.3.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
go version
Download binary file
git clone https://github.com/SunriseLayer/sunrise-app.git
cd sunrise-app
git checkout v1.1.0
make install
cp $HOME/go/bin/sunrised /usr/local/bin/
sunrised version
Initialize the node
sunrised init <your-name> --chain-id sunrise-1
Download genesis & addrbook
curl -L https://snapshot-2.provewithryd.xyz/sunrise/genesis.json > $HOME/.sunrise/config/genesis.json
curl -L https://snapshot-2.provewithryd.xyz/sunrise/addrbook.json > $HOME/.sunrise/config/addrbook.json
Configure Seeds and Peers
PEERS=$(curl -sS https://rpc-sunrise.provewithryd.xyz/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|,$||')
sed -i -e "s|^persistent_peers *=.*|persistent_peers = '$PEERS'|" $HOME/.sunrise/config/config.toml
Custumize Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.sunrise/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.sunrise/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.sunrise/config/app.toml
Set Minumum Gas & Disable Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001uusdrise\"|" $HOME/.sunrise/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.sunrise/config/config.toml
Create Systemd Services
tee /etc/systemd/system/sunrised.service > /dev/null <<EOF
[Unit]
Description=Sunrise Mainnet Node
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/sunrised start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Enable and Start Services
systemctl daemon-reexec
systemctl daemon-reload
systemctl enable sunrised.service
systemctl start sunrised.service
Last updated