Skip to content

Instantly share code, notes, and snippets.

@sing1ee
Created September 14, 2022 03:18
Show Gist options
  • Save sing1ee/e3e95c7deafc3be885f0a29e19177d1f to your computer and use it in GitHub Desktop.
Save sing1ee/e3e95c7deafc3be885f0a29e19177d1f to your computer and use it in GitHub Desktop.
key steps for install osmosis full node for pocket network
1. install
```shell
cd ~/chain_bin/
wget https://github.com/osmosis-labs/osmosis/releases/download/v11.0.1/osmosisd.tar.gz
wget https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.3.0/cosmovisor-v1.3.0-linux-amd64.tar.gz
```
2. snapshot
```shell
https://quicksync.io/networks/osmosis.html
```
3. osmosisd
```shell
mkdir -p /home/user/chain_data/osmosis/data
/home/user/chain_bin/osmosisd init node31 --home /home/user/chain_data/osmosis
wget -O /home/user/chain_data/osmosis/config/genesis.json https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json
```
4.
```shell
mkdir -p /home/user/chain_data/osmosis/cosmovisor
mkdir -p /home/user/chain_data/osmosis/cosmovisor/genesis
mkdir -p /home/user/chain_data/osmosis/cosmovisor/genesis/bin
mkdir -p /home/user/chain_data/osmosis/cosmovisor/upgrades
cp /home/user/chain_bin/osmosisd /home/user/chain_data/osmosis/cosmovisor/genesis/bin
mkdir -p /home/user/chain_data/osmosis/cosmovisor/upgrades/v11/bin/
cp /home/user/chain_bin/osmosisd /home/user/chain_data/osmosis/cosmovisor/upgrades/v11/bin/
config/app.toml
echo "# Setup Cosmovisor" >> ~/.profile
echo "export DAEMON_NAME=osmosisd" >> ~/.profile
echo "export DAEMON_HOME=/home/user/chain_data/osmosis" >> ~/.profile
echo "export DAEMON_ALLOW_DOWNLOAD_BINARIES=false" >> ~/.profile
echo "export DAEMON_LOG_BUFFER_SIZE=512" >> ~/.profile
echo "export DAEMON_RESTART_AFTER_UPGRADE=true" >> ~/.profile
echo "export UNSAFE_SKIP_BACKUP=true" >> ~/.profile
source ~/.profile
## config ##
sed -i 's/address = \"tcp:\/\/0.0.0.0:1317\"/address = \"tcp:\/\/0.0.0.0:1318\"/g' config/app.toml
sed -i 's/minimum-gas-prices = \"0uosmo\"/minimum-gas-prices = \"0.001uosmo\"/g' config/app.toml
sed -i 's/laddr = \"tcp:\/\/127.0.0.1:26657\"/laddr = \"tcp:\/\/0.0.0.0:9610\"/g' config/config.toml
sed -i 's/laddr = \"tcp:\/\/0.0.0.0:26656\"/laddr = \"tcp:\/\/0.0.0.0:9010\"/g' config/config.toml
## config ##
/home/user/chain_bin/osmosisd version
/home/user/chain_bin/cosmovisor version
echo "[Unit]
Description=Cosmovisor daemon
After=network-online.target
[Service]
Environment="DAEMON_NAME=osmosisd"
Environment="DAEMON_HOME=/home/user/chain_data/osmosis"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_LOG_BUFFER_SIZE=512"
Environment="UNSAFE_SKIP_BACKUP=true"
User=$USER
ExecStart=/home/user/chain_bin/cosmovisor run start --home /home/user/chain_data/osmosis
Restart=always
RestartSec=3
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=multi-user.target
" >cosmovisor.service
```
5. osmosis peers
```shell
https://github.com/osmosis-labs/networks/blob/main/peers.md
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment