Upgrade proposal detected

Decentr Decentr

Creating a bridge between internet users and applications developed with distributed ledger technology, an open source platform, which enables you to manage and pay with your Personal Data Value.

Installation (Ubuntu/Debian)

Install dependencies

sudo apt update
sudo apt install -y curl git jq lz4 build-essential
sudo rm -rf /usr/local/go
sudo curl -Ls https://go.dev/dl/go1.20.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
tee -a $HOME/.profile > /dev/null << EOF
export PATH=$PATH:/usr/local/go/bin
EOF
source $HOME/.profile

Download/compile and install decentrd

cd $HOME
rm -rf decentr
git clone https://github.com/Decentr-net/decentr
cd decentr

# Compile version v1.6.2
git checkout v1.6.2
make build
mkdir -p $HOME/.decentr/cosmovisor/upgrades/v160/bin
mv build/decentrd $HOME/.decentr/cosmovisor/upgrades/v160/bin/

Install cosmovisor and service

curl -Ls https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.3.0/cosmovisor-v1.3.0-linux-amd64.tar.gz | tar xz
chmod 755 cosmovisor
sudo mv cosmovisor /usr/bin/cosmovisor

sudo tee /etc/systemd/system/decentrd.service > /dev/null << EOF
[Unit]
Description=Decentr Node Service
After=network-online.target
[Service]
User=$USER
ExecStart=/usr/bin/cosmovisor run start
Restart=on-failure
RestartSec=10
LimitNOFILE=8192
Environment="DAEMON_HOME=$HOME/.decentr"
Environment="DAEMON_NAME=decentrd"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable decentrd

Initialize the node

MONIKER=""

ln -s $HOME/.decentr/cosmovisor/upgrades/v160 $HOME/.decentr/cosmovisor/current
sudo ln -s $HOME/.decentr/cosmovisor/current/bin/decentrd /usr/local/bin/decentrd
decentrd config chain-id mainnet-3
decentrd init $MONIKER --chain-id mainnet-3
curl -Ls https://raw.githubusercontent.com/Decentr-net/mainnets/master/3.0/genesis.json > $HOME/.decentr/config/genesis.json
tee $HOME/.decentr/data/priv_validator_state.json > /dev/null << EOF
{
  "height": "0",
  "round": 0,
  "step": 0
}
EOF
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001udec\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^pruning *=.*|pruning = \"custom\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^pruning-keep-recent *=.*|pruning-keep-recent = \"3000\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^pruning-keep-every *=.*|pruning-keep-every = \"0\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^pruning-interval *=.*|pruning-interval = \"10\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^snapshot-interval *=.*|snapshot-interval = \"1000\"|" $HOME/.decentr/config/app.toml
sed -i -e "s|^snapshot-keep-recent *=.*|snapshot-keep-recent = \"2\"|" $HOME/.decentr/config/app.toml

Start the service and check the log

sudo systemctl start decentrd
sudo journalctl -u decentrd -f --no-hostname -o cat