Mainnet

Chain ID: omniflixhub-1 | Node Version: v2.1.0

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.21.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf omniflixhub

git clone https://github.com/Omniflix/omniflixhub.git

cd omniflixhub

git checkout v2.1.0

make install

omniflixhubd version

Initialize Node

Replace NodeName with your own moniker.

omniflixhubd init NodeName --chain-id=omniflixhub-1

Download Genesis

curl -Ls https://ss.omniflix.nodestake.org/genesis.json > $HOME/.omniflixhub/config/genesis.json 

Download addrbook

curl -Ls https://ss.omniflix.nodestake.org/addrbook.json > $HOME/.omniflixhub/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/omniflixhubd.service > /dev/null <<EOF
[Unit]
Description=omniflixhubd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which omniflixhubd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable omniflixhubd

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss.omniflix.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.omniflix.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.omniflixhub

Launch Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

If you have any questions, please reach out to our Discord

 

https://rpc.omniflix.nodestake.org

 

https://api.omniflix.nodestake.org

 

https://grpc.omniflix.nodestake.org

https://ss.omniflix.nodestake.org/genesis.json

Download Genesis File

curl -Ls https://ss.omniflix.nodestake.org/genesis.json > $HOME/.omniflixhub/config/genesis.json 

https://ss.omniflix.nodestake.org/addrbook.json

Download Addrbook

curl -Ls https://ss.omniflix.nodestake.org/addrbook.json > $HOME/.omniflixhub/config/addrbook.json 

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

Set Peers

peers=$(curl -s https://ss.omniflix.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.omniflixhub/config/config.toml

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

Stop Node And Reset

sudo systemctl stop omniflixhubd

omniflixhubd tendermint unsafe-reset-all --home ~/.omniflixhub/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc.omniflix.nodestake.org:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

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.bak -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\"| ; \

s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.omniflixhubd/config/config.toml

more ~/.omniflixhubd/config/config.toml | grep 'rpc_servers'

more ~/.omniflixhubd/config/config.toml | grep 'trust_height'

more ~/.omniflixhubd/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.omniflixhub/config/config.toml

Stop Node and Reset Date

sudo systemctl stop omniflixhubd

cp $HOME/.omniflixhub/data/priv_validator_state.json $HOME/.omniflixhub/priv_validator_state.json.backup

rm -rf ~/.omniflixhub/data

omniflixhubd tendermint unsafe-reset-all --home ~/.omniflixhub/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss.omniflix.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.omniflix.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.omniflixhub

mv $HOME/.omniflixhub/priv_validator_state.json.backup $HOME/.omniflixhub/data/priv_validator_state.json

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

If you have any questions, please reach out to our Discord

Testnet

Chain ID: flixnet-1 | Node Version: v0.11.1

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.19.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf omniflixhub

git clone https://github.com/Omniflix/omniflixhub.git

cd omniflixhub

git checkout v0.11.1

make install

omniflixhubd version

v0.12.0-alpha.1

Initialize Node

Replace NodeName with your own moniker.

omniflixhubd init NodeName --chain-id=flixnet-4

Download Genesis

curl -Ls https://ss-t.omniflix.nodestake.top/genesis.json > $HOME/.omniflixhub/config/genesis.json 

Download addrbook

curl -Ls https://ss-t.omniflix.nodestake.top/addrbook.json > $HOME/.omniflixhub/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/omniflixhubd.service > /dev/null <<EOF
[Unit]
Description=omniflixhubd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which omniflixhubd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable omniflixhubd

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss-t.omniflix.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.omniflix.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.omniflixhub

Launch Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

If you have any questions, please reach out to our Discord

 

https://rpc-t.omniflix.nodestake.top

 

https://api-t.omniflix.nodestake.top

 

https://grpc-t.omniflix.nodestake.top

https://ss-t.omniflix.nodestake.top/genesis.json

Download Genesis File

curl -Ls https://ss-t.omniflix.nodestake.top/genesis.json > $HOME/.omniflixhub/config/genesis.json 

https://ss-t.omniflix.nodestake.top/addrbook.json

Download Addrbook

curl -Ls https://ss-t.omniflix.nodestake.top/addrbook.json > $HOME/.omniflixhub/config/addrbook.json 

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

Set Peers

peers=$(curl -s https://ss-t.omniflix.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.omniflixhub/config/config.toml

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

Stop Node And Reset

sudo systemctl stop omniflixhubd

omniflixhubd tendermint unsafe-reset-all --home ~/.omniflixhub/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc-t.omniflix.nodestake.top:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

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.bak -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\"| ; \

s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.omniflixhub/config/config.toml

more ~/.omniflixhub/config/config.toml | grep 'rpc_servers'

more ~/.omniflixhub/config/config.toml | grep 'trust_height'

more ~/.omniflixhub/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

We make the node snapshot every 6h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.omniflixhub/config/config.toml

Stop Node and Reset Date

sudo systemctl stop omniflixhubd

cp $HOME/.omniflixhub/data/priv_validator_state.json $HOME/.omniflixhub/priv_validator_state.json.backup

rm -rf ~/.omniflixhub/data

omniflixhubd tendermint unsafe-reset-all --home ~/.omniflixhub/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss-t.omniflix.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.omniflix.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.omniflixhub

mv $HOME/.omniflixhub/priv_validator_state.json.backup $HOME/.omniflixhub/data/priv_validator_state.json

Restart Node

sudo systemctl restart omniflixhubd
journalctl -u omniflixhubd -f

If you have any questions, please reach out to our Discord