Skip to content

The Mises Chain is powered by the Tendermint consensus. Validators run full nodes, participate in consensus by broadcasting votes, commit new blocks to the blockchain, and participate in governance of the blockchain. Validators are able to cast votes on behalf of their delegators.

Notifications You must be signed in to change notification settings

furidngrt/Mises-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Tutorial Create Validator Mises Mainnet


Install otomatis


wget -O mises.sh https://raw.githubusercontent.com/Whalealert/mises-mainnet/main/mises.sh && chmod +x mises.sh && ./mises.sh

Load variable ke system


source $HOME/.bash_profile

Statesync


misestmd version --long

version 1.0.4

  • Download addrbok
wget -O $HOME/.misestm/config/addrbook.json "https://raw.githubusercontent.com/Whalealert/mises-mainnet/main/addrbook.json"
  • Download peers
PEERS="fb28bb1be09c72a685aeff7a2fafeb06e7cdae42@194.163.148.193:36657,87a3096f64fc1ccca93a7c99face66abfe14af71@116.202.236.115:20856,f83f2ff1254822df5891ed8f3dc2dda869e3e6fd@65.108.101.50:56656,917ec8e4c8acbd9fc6bb7dee865cd758f566febb@176.9.34.169:20006"

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.misestm/config/config.toml
  • Statesync
SNAP_RPC="https://e1.mises.site:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.misestm/config/config.toml
mv $HOME/.misestm/priv_validator_state.json.backup $HOME/.misestm/data/priv_validator_state.json

sudo systemctl restart misestmd && sudo journalctl -u misestmd -f --no-hostname -o cat

Informasi node

  • cek sync node
misestmd status 2>&1 | jq .SyncInfo
  • cek log node
journalctl -fu misestmd -o cat
  • cek node info
misestmd status 2>&1 | jq .NodeInfo
  • cek validator info
misestmd status 2>&1 | jq .ValidatorInfo
  • cek node id
misestmd tendermint show-node-id

Membuat wallet

  • wallet baru
misestmd keys add $WALLET
  • recover wallet
misestmd keys add $WALLET --recover
  • list wallet
misestmd keys list
  • hapus wallet
misestmd keys delete $WALLET

Simpan informasi wallet

MISES_WALLET_ADDRESS=$(misestmd keys show $WALLET -a)
MISES_VALOPER_ADDRESS=$(misestmd keys show $WALLET --bech val -a)
echo 'export MISES_WALLET_ADDRESS='${MISES_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export MISES_VALOPER_ADDRESS='${MISES_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile

Membuat validator

  • cek balance
misestmd query bank balances $MISES_WALLET_ADDRESS
  • membuat validator
misestmd tx staking create-validator \
  --amount 1000000umis \
  --from $WALLET \
  --commission-max-change-rate "0.01" \
  --commission-max-rate "0.2" \
  --commission-rate "0.07" \
  --min-self-delegation "1" \
  --pubkey  $(misestmd tendermint show-validator) \
  --moniker $NODENAME \
  --fees 250umis \
  --chain-id $MISES_CHAIN_ID

Chceck Validator kalian disini https://gw.mises.site/validators

  • edit validator
misestmd tx staking edit-validator \
  --moniker="nama-node" \
  --identity="<your_keybase_id>" \
  --website="<your_website>" \
  --details="<your_validator_description>" \
  --chain-id=$MISES_CHAIN_ID \
  --fees 250umis \
  --from=$WALLET

° unjail validator

misestmd tx slashing unjail \
  --broadcast-mode=block \
  --from=$WALLET \
  --chain-id=$MISES_CHAIN_ID \
  --fees=250umis

Voting

misestmd tx gov vote 1 yes --from $WALLET --chain-id=$MISES_CHAIN_ID

Delegasi dan Rewards

  • delegasi
misestmd tx staking delegate $MISES_VALOPER_ADDRESS 1000000umis --from=$WALLET --chain-id=$MISES_CHAIN_ID --fees=250umis
  • withdraw reward
misestmd tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$MISES_CHAIN_ID --fees=250umis
  • withdraw reward beserta komisi
misestmd tx distribution withdraw-rewards $MISES_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$MISES_CHAIN_ID

Hapus node

sudo systemctl stop misestmd && \
sudo systemctl disable misestmd && \
rm /etc/systemd/system/misestmd.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf mises-tm && \
rm -rf mises.sh && \
rm -rf .misestm && \
rm -rf $(which misestmd)

About

The Mises Chain is powered by the Tendermint consensus. Validators run full nodes, participate in consensus by broadcasting votes, commit new blocks to the blockchain, and participate in governance of the blockchain. Validators are able to cast votes on behalf of their delegators.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published