V0.3.0-prebuild9

Previous Version: v0.3.0-prebuild3

v0.3.0-prebuild3

This guide assumes that the current systemd file is named as crossfi

For Non Cosmovisor Users

Downloading and installing Binary

#Download Pre-compiled Binaries and make them executable
wget https://github.com/crossfichain/crossfi-node/releases/download/v0.3.0-prebuild9/crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz
tar -xvf crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz
chmod +x $HOME/bin/crossfid
mv $HOME/bin/crossfid $HOME/go/bin


# Updating to new Home for Crossfi Data Directory
cd $HOME
mv $HOME/.mineplex-chain $HOME/.crossfi

### remove previous systemd file
sudo rm -r /etc/systemd/system/crossfi.service

#installing New Systemd with updated location
sudo tee /etc/systemd/system/crossfi.service > /dev/null <<EOF
[Unit]
Description=crossfid
After=network-online.target

[Service]
User=$USER
ExecStart=$(which crossfid) start 
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

# Reload systemd files
sudo systemctl daemon-reload
sudo systemctl restart crossfi.service
journalctl -u crossfi.service -f -o cat

For Cosmovisor Users

#Download Pre-compiled Binaries and make them executable
wget https://github.com/crossfichain/crossfi-node/releases/download/v0.3.0-prebuild9/crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz
tar -xvf crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz
chmod +x $HOME/bin/crossfid
mv $HOME/bin/crossfid $HOME/go/bin


#copying crossfi deamon to cosmovisor
mkdir -p $HOME/.crossfi/cosmovisor/upgrades/erc20-cheque-testnet/bin
sudo $HOME/ubuntu/go/bin/crossfid $HOME/.crossfi/cosmovisor/upgrades/erc20-cheque-testnet/bin


# Updating to new Home for Crossfi Data Directory
cd $HOME
mv $HOME/.mineplex-chain $HOME/.crossfi


### remove previous systemd file
sudo rm -r /etc/systemd/system/crossfi.service

#installing New Systemd with updated location
sudo tee /etc/systemd/system/crossfi.service > /dev/null <<EOF
[Unit]
Description=cosmovisor
After=network-online.target

[Service]
User=$USER
ExecStart=$HOME/go/bin/cosmovisor start 
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=crossfid"
Environment="DAEMON_HOME=$HOME/.crossfi"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"

[Install]
WantedBy=multi-user.target
EOF


# Reload systemd files
sudo systemctl daemon-reload
sudo systemctl restart crossfi.service
journalctl -u crossfi.service -f -o cat

Last updated