**Recommended configuration:**
- Number of CPUs: 4
- Memory: 16GB
- OS: Ubuntu 22.04 LTS
- Allow all incoming connections from TCP port 26656 and 26657
- Static IP address
- Min. 500 GB HD (SSD)
sudo apt update
sudo apt upgrade -y
sudo apt install build-essential jq -y
Install latest go version https://golang.org/doc/install
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash -s -- --version 1.18
source ~/.profile
go version
// Should return go version go1.18 linux/amd64
git clone https://github.com/munblockchain/mun
cd mun
sudo rm -rf ~/.mun
go mod tidy
make install
clear
mkdir -p ~/.mun/upgrade_manager/upgrades
mkdir -p ~/.mun/upgrade_manager/genesis/bin
cp $(which mund) ~/.mun/upgrade_manager/genesis/bin
sudo cp $(which mund-manager) /usr/bin
mund init [moniker_name] --chain-id testmun
mund keys add [wallet_name] --keyring-backend test
Important: Backup your priv_validator_key.json file (Make a copy and download it to your local machine) and also copy the contents to your password manager with:
cat $HOME/.mun/config/priv_validator_key.json
then copy the content starting with {... and ending with }} into your password manager (You should use keepassxc.org)
curl --tlsv1 https://node1.mun.money/genesis? | jq ".result.genesis" > ~/.mun/config/genesis.json
nano ~/.mun/config/config.toml
seeds = "XXXX"
Please ask in our Discord for the seeds to replace XXXX! Join our Discord: https://discord.gg/mun
sed -i 's/stake/utmun/g' ~/.mun/config/genesis.json
sudo nano /etc/systemd/system/mund.service
Paste following content(*Please make sure to use correct name of user, group and DAEMON_HOME path at the below.)
[Unit]
Description=mund
Requires=network-online.target
After=network-online.target
[Service]
Restart=on-failure
RestartSec=3
User=root
Group=root
Environment=DAEMON_NAME=mund
Environment=DAEMON_HOME=/root/.mun
Environment=DAEMON_ALLOW_DOWNLOAD_BINARIES=on
Environment=DAEMON_RESTART_AFTER_UPGRADE=on
PermissionsStartOnly=true
ExecStart=/usr/bin/mund-manager start --pruning="nothing" --rpc.laddr "tcp://0.0.0.0:26657"
StandardOutput=file:/var/log/mund/mund.log
StandardError=file:/var/log/mund/mund_error.log
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
Tips
- How to get user and group name
whoami
- How to get DAEMON_HOME path
cd ~/.mun
pwd
make log-files
sudo systemctl enable mund
sudo systemctl start mund && journalctl -u mund -f -o cat
mund status
You should wait until the node gets fully synchronized with other nodes. You can cross check with the genesis node by visiting https://node1.mun.money/status and check the latest block height. You can also check your node status through this link http://[Your_Node_IP]:26657/status.
mund tx staking create-validator --from [wallet_name] --moniker [moniker_name] --pubkey $(mund tendermint show-validator) --chain-id testmun --keyring-backend test --amount 100000000000utmun --commission-max-change-rate 0.01 --commission-max-rate 0.2 --commission-rate 0.1 --min-self-delegation 1 --fees 20000utmun -y
mund tx slashing unjail --from XXXXX --chain-id testmun --keyring-backend test