OmniFlix
Stop omniflixhubd
service and reset database:
sudo systemctl stop omniflixhubd
omniflixhubd tendermint unsafe-reset-all --home $HOME/.omniflixhub --keep-addr-book
PEER="2ea044efd77d13984b90d1eb7b7e1466b55d1bd2@65.108.229.102:23656"
SNAP="https://rpc-omniflix.huginn.tech:443"
LATEST_HEIGHT=$(curl -s $SNAP/block | jq -r .result.block.header.height)
TRUST_HEIGHT=$((LATEST_HEIGHT - 1000))
TRUST_HASH=$(curl -s "$SNAP/block?height=$TRUST_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP,$SNAP\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$TRUST_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.omniflixhub/config/config.toml
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEER\"/" $HOME/.omniflixhub/config/config.toml
2- Run omnniflixhubd
and check logs
omnniflixhubd
and check logssudo systemctl start omniflixhubd
sudo journalctl -u omniflixhubd -f -o cat
Last updated