💻 Hardware Requirements
Components | Minimum Requirements |
---|
| |
| |
| |
1️⃣ Installation packages and dependencies
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
➡️ Go Installation
cd $HOME
VER="1.21.6"
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
2️⃣ Install node
cd $HOME
rm -rf galactica
git clone https://github.com/Galactica-corp/galactica
cd galactica
git checkout v0.1.2
make build
mkdir -p ~/.galactica/cosmovisor/upgrades/0.1.2/bin
mv $HOME/galactica/build/galacticad ~/.galactica/cosmovisor/upgrades/0.1.2/bin/
sudo ln -s ~/.galactica/cosmovisor/upgrades/0.1.2 ~/.galactica/cosmovisor/current -f
sudo ln -s ~/.galactica/cosmovisor/current/bin/galacticad /usr/local/bin/galacticad -f
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.6.0
➡️ Create a service
sudo tee /etc/systemd/system/galacticad.service > /dev/null << EOF
[Unit]
Description=galactica node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.galactica --chain-id galactica_9302-1
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=${HOME}/.galactica"
Environment="DAEMON_NAME=galacticad"
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:~/.galactica/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
➡️ Let's activate it
sudo systemctl daemon-reload
sudo systemctl enable galacticad
➡️ Initialize the node
galacticad config chain-id galactica_9302-1
galacticad config keyring-backend os
galacticad config node tcp://localhost:${GALACTICA_PORT}657
➡️ Genesis addrbook
curl https://server-4.itrocket.net/testnet/galactica/genesis.json -o ~/.galactica/config/genesis.json
curl https://server-4.itrocket.net/testnet/galactica/addrbook.json -o ~/.galactica/config/addrbook.json
➡️ Port
sed -i.bak -e "s%:1317%:${GALACTICA_PORT}317%g;
s%:8080%:${GALACTICA_PORT}080%g;
s%:9090%:${GALACTICA_PORT}090%g;
s%:9091%:${GALACTICA_PORT}091%g;
s%:8545%:${GALACTICA_PORT}545%g;
s%:8546%:${GALACTICA_PORT}546%g;
s%:6065%:${GALACTICA_PORT}065%g" $HOME/.galactica/config/app.toml
sed -i.bak -e "s%:26658%:${GALACTICA_PORT}658%g;
s%:26657%:${GALACTICA_PORT}657%g;
s%:6060%:${GALACTICA_PORT}060%g;
s%:26656%:${GALACTICA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${GALACTICA_PORT}656\"%;
s%:26660%:${GALACTICA_PORT}660%g" $HOME/.galactica/config/config.toml
➡️ Peers and Seeds
SEEDS="52ccf467673f93561c9d5dd4434def32ef2cd7f3@galactica-testnet-seed.itrocket.net:46656"
PEERS="c9993c738bec6a10cfb8bb30ac4e9ae6f8286a5b@galactica-testnet-peer.itrocket.net:11656,32775b9c2cdc1a46d44c11f875ae5098932e7d2e@205.209.104.235:26656,a028446e34e3c5bd198a60bf6e799a05e8db16a1@116.202.162.188:15656,378dcf86fb8748ce9b1ffff9d8310c6c59af09f3@5.189.175.174:26656,e104cf08023696afa2c364ca386b67c5db0982b5@151.115.60.105:46656,9990ab130eac92a2ed1c3d668e9a1c6e811e8f35@148.251.177.108:27456,bf3a776532a0903bbd29115ef40879c2a6de54c1@144.126.142.160:46656,998472dbf0a6c8a162f9ddd201565ad6f9eabf2c@95.217.89.100:46656,f3cd6b6ebf8376e17e630266348672517aca006a@46.4.5.45:27456,71605e9fcaa0657db234d61ea75e5f4ce134562a@167.235.159.144:26656,389d2cd024ad8cc24fc32d85f7eaff4e97bd1d11@37.60.239.90:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.galactica/config/config.toml
➡️ Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.galactica/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.galactica/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.galactica/config/app.toml
➡️ Gas Settings
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "10agnet"|g' $HOME/.galactica/config/app.toml
➡️ Indexer
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.galactica/config/config.toml
➡️ Snap (old)
use this snapshot service https://itrocket.net/services/testnet/galactica/
➡️ Let's get started
sudo systemctl start galacticad && sudo journalctl -u galacticad -f --no-hostname -o cat
➡️ Log Command
journalctl -u galacticad -f -o cat
➡️ Create wallet
don't forget to backup the wallet words!
➡️ Import wallet
➡️ Get the EVM address of the wallet you created
➡️ Get the priv key of the wallet you created
➡️ Faucet
➡️ Create Validator
Reminder: You can't create a validator without Sync. You must have to catch the latest block.
➡️ Edit Validator
➡️ Delegation
➡️ Complete deletion
cd $HOME
sudo systemctl stop galacticad
sudo systemctl disable galacticad
sudo rm -rf /etc/systemd/system/galacticad.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/galacticad
sudo rm -f $(which galactica)
sudo rm -rf $HOME/.galactica $HOME/galactica
sed -i "/GALACTICA_/d" $HOME/.bash_profile
➡️ Block check
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.