Skip to content

Instantly share code, notes, and snippets.

@cyborgshead
Created October 25, 2016 13:10
Show Gist options
  • Save cyborgshead/408ca163fa7596cde84aaa8d3f648246 to your computer and use it in GitHub Desktop.
Save cyborgshead/408ca163fa7596cde84aaa8d3f648246 to your computer and use it in GitHub Desktop.
#!/bin/bash
# install dependencies
sudo apt-get -y upgrade && sudo apt-get -y install git cmake g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev libssl-dev libncurses5-dev doxygen libreadline-dev dh-autoreconf screen
# remove old installation
rm -rf golos
mkdir golos
rm -rf golosnode
mkdir golosnode
# pull fresh code, compile
git clone https://github.com/GolosChain/golos && cd golos && git checkout testnetPR4 && git submodule update --init --recursive && cmake -DCMAKE_BUILD_TYPE=Release . && make -j4
# install new binaries
cp programs/golosd/golosd ../golosnode/
cp programs/golosd/snapshot5392323.json ../golosnode/
cp programs/cli_wallet/cli_wallet ../golosnode/
# go into golos
cd ..
cd golosnode/
mkdir witness_node_data_dir
# apply config.ini if available
if [ -f ../config.ini ]
then
cp -fv ../config.ini witness_node_data_dir/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment