# Install Go (one command)ver="1.20.2"&&\wget"https://golang.org/dl/go$ver.linux-amd64.tar.gz"&&\sudorm-rf/usr/local/go&&\sudotar-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&&\goversion# go version go1.20.2 linux/amd64
# Set the variables# Come up with the name of your node and replace it instead <your_moniker>DEFUND_MONIKER=<your_moniker>echo'export DEFUND_MONIKER='$DEFUND_MONIKER>>$HOME/.bash_profileecho"export DEFUND_CHAIN_ID=orbit-alpha-1">>$HOME/.bash_profileecho"export DEFUND_PORT=13">>$HOME/.bash_profilesource$HOME/.bash_profile# check whether the last command was executed
Setup config
(OPTIONAL) Turn off indexing in config.toml
Cosmovisor
Now all ok, check the status
Wallet
Create a password for the wallet and write it down so you don't forget it. The wallet has been created. In the last line there will be a phrase that must be written down
# correct config (so we can no longer use the chain-id flag for every CLI command in client.toml)
defundd config chain-id $DEFUND_CHAIN_ID
# adjust if necessary keyring-backend в client.toml
defundd config keyring-backend test
defundd config node tcp://localhost:${DEFUND_PORT}657
# Set the minimum price for gas
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025ufetf\"/;" ~/.defund/config/app.toml
# Add seeds/peers в config.toml
peers="9f92e47ea6861f75bf8a450a681218baae396f01@94.130.219.37:26656,f03f3a18bae28f2099648b1c8b1eadf3323cf741@162.55.211.136:26656,f8fa20444c3c56a2d3b4fdc57b3fd059f7ae3127@148.251.43.226:56656,70a1f41dea262730e7ab027bcf8bd2616160a9a9@142.132.202.86:17000,
e47e5e7ae537147a23995117ea8b2d4c2a408dcb@172.104.159.69:45656,74e6425e7ec76e6eaef92643b6181c42d5b8a3b8@defund-testnet-seed.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.defund/config/config.toml
seeds="9f92e47ea6861f75bf8a450a681218baae396f01@94.130.219.37:26656,f03f3a18bae28f2099648b1c8b1eadf3323cf741@162.55.211.136:26656,f8fa20444c3c56a2d3b4fdc57b3fd059f7ae3127@148.251.43.226:56656,70a1f41dea262730e7ab027bcf8bd2616160a9a9@142.132.202.86:17000,e47e5e7ae537147a23995117ea8b2d4c2a408dcb@172.104.159.69:45656,74e6425e7ec76e6eaef92643b6181c42d5b8a3b8@defund-testnet-seed.itrocket.net:443"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.defund/config/config.toml
# Set up filter for "bad" peers
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.defund/config/config.toml
#
sed -i -e "s/^timeout_commit *=.*/timeout_commit = \"60s\"/" $HOME/.defund/config/config.toml
sed -i -e "s/^timeout_propose *=.*/timeout_propose = \"60s\"/" $HOME/.defund/config/config.toml
sed -i -e "s/^create_empty_blocks_interval *=.*/create_empty_blocks_interval = \"60s\"/" $HOME/.defund/config/config.toml
sed -i 's/create_empty_blocks = .*/create_empty_blocks = true/g' ~/.defund/config/config.toml
sed -i 's/timeout_broadcast_tx_commit = ".*s"/timeout_broadcast_tx_commit = "601s"/g' ~/.defund/config/config.toml
# Set up pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.defund/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.defund/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.defund/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.defund/config/app.toml
# Check the logs again
journalctl -u defundd -f -o cat
# Escape from logs ctrl+c
# Check status
curl localhost:${DEFUND_PORT}657/status
# "catching_up": false means that the node is synchronized, we are waiting for complete synchronization
# Create wallet
defundd keys add wallet
# If the wallet was already there, restore it
defundd keys add wallet --recover
# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
# Save the wallet address
DEFUND_ADDRESS=$(defundd keys show wallet -a)
DEFUND_VALOPER=$(defundd keys show wallet --bech val -a)
echo "export DEFUND_ADDRESS="${DEFUND_ADDRESS} >> $HOME/.bash_profile
echo "export DEFUND_VALOPER="${DEFUND_VALOPER} >> $HOME/.bash_profile
source $HOME/.bash_profile
# Check the ballance
defundd q bank balances $DEFUND_ADDRESS