Hardware prerequisites
To prepare for the upcoming testnet and network upgrades the Dymension validators and full nodes should be prepared with the following minimum recommended hardware requirements:
100mbps network bandwidth
Preparing the server
Copy sudo apt update && sudo apt upgrade -y
sudo apt install curl lz4 tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
Install Go
Copy cd $HOME
ver="1.21.3"
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
Copy cd $HOME
git clone https://github.com/dymensionxyz/dymension.git
cd dymension
git checkout v2.0.0-alpha.8
make install
Verify that the Dymension full node is installed correctly
Example :
name: dymension
server_name: dymd
version: v2.0.0-alpha.8
commit: 080bbb9ede90170f84a3f4f3665c179ea8742716
Copy dymd init mynode --chain-id=froopyland_100-1
dymd config chain-id froopyland_100-1
Create Wallet:
Copy to restore exexuting wallet, use the flag recover
Copy dymd keys add OR dymd keys add --recover
Download Genesis:
Copy wget https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/genesis.json -O $HOME/.dymension/config/genesis.json
Download Addrbook:
Copy wget -O $HOME/.dymension/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/addrbook.json"
Copy
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0udym\"/;" ~/.dymension/config/app.toml
external_address=$(wget -qO- eth0.me)
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.dymension/config/config.toml
peers="[email protected] :20556,[email protected] :20556"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.dymension/config/config.toml
seeds="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:20556"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.dymension/config/config.toml
sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.dymension/config/config.toml
sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.dymension/config/config.toml
Set pruning
Copy sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.dymension/config/app.toml
Create systemd
Copy sudo tee /etc/systemd/system/dymd.service > /dev/null <<EOF
[Unit]
Description=DYMENSION\n
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which dymd) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Copy sudo systemctl daemon-reload
sudo systemctl enable dymd
SnapShot Mainnet updated every 5 hours
Copy cd $HOME
apt install lz4
sudo systemctl stop dymd
cp $HOME/.dymension/data/priv_validator_state.json $HOME/.dymension/priv_validator_state.json.backup
rm -rf $HOME/.dymension/data
curl -L https://snapshots.kjnodes.com/dymension-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.dymension
mv $HOME/.dymension/priv_validator_state.json.backup $HOME/.dymension/data/priv_validator_state.json
sudo systemctl restart dymd && journalctl -u dymd -f -o cat
Create Validator
Copy dymd tx staking create-validator
--commission-rate 0.1
--commission-max-rate 0.2
--commission-max-change-rate 0.2
--min-self-delegation "1000000"
--amount 1000000000000000000adym
--pubkey $(dymd tendermint show-validator)
--from
--gas 350000
--fees 7000000000000000adym
--moniker="Your Validator"
--chain-id="froopyland_100-1"
--identity=""
--website=""
--details="" -y
Delete Node ( Be careful when using this command, all your data will be deleted )
sudo systemctl stop dymd
sudo systemctl disable dymd
rm /etc/systemd/system/dymd.service
sudo systemctl daemon-reload cd $HOME
rm -rf dymension
rm -rf .dymension
rm -rf $(which dymd)
Last updated 4 months ago