Skip to content

Instantly share code, notes, and snippets.

@aronschatz
Last active April 8, 2018 03:01
Show Gist options
  • Save aronschatz/737e77230fbdeb39f9b0ccfe7f956962 to your computer and use it in GitHub Desktop.
Save aronschatz/737e77230fbdeb39f9b0ccfe7f956962 to your computer and use it in GitHub Desktop.
Galactrum (ORE) Manual Masternode Guide
Like this guide? Donate to GKpGdrSQRTwMLDFpUne2FoVfggMLXWvnh2 (ORE)
BTC Tips: 1GwRSXHVRR6hq3rSTHhRB1j3UkuBWjqzZ2
ETH Tips: 0xA5319cc479E3aED6380EA06E1352B93d47BABaA6
LTC Tips: LYbh1tpzBwbzJi5yHGaVxrBPrTRXU9r8Sz
--------------------------
Generate Masternode Key...
./galactrum-cli masternode genkey
Generate new receiving address...
./galactrum-cli getnewaddress
Send 1000 ORE transaction to yourself (somehow)
./galactrum-cli sendtoaddress GWo3K96rtPKzqVXnqakboJ5CC1x5W6SVdd 1000
Grab transaction output
./galactrum-cli masternode outputs
Add masternode info to masternode.conf Have IP address of server.
vi ~/.galactrum/masternode.conf
File should look like this format
Alias IP:Port genkey Transaction Vout
And with values filled out
mn0 198.58.120.187:6270 7sHdbUT8Q3gYLWPXk28nx48GCL5SYDTceLtjyCjHX8e7AxJ7ed7 65e7e9192a749e10a8e861d7c0ecf5098dcc4d0a5d37d74174e52a83fc97c6a7 1
Restart the wallet
./galactrum-cli stop
./galactrumd -daemon
--------------------------
Log in to the VPS!
Create user
adduser aronschatz
Add to sudo group...
visudo
Log in as that user
Update system and install Bitcoin PPA and other packages
sudo apt-get -y update
sudo apt-get -y install software-properties-common
sudo apt-add-repository -y ppa:bitcoin/bitcoin
sudo apt-get -y update
sudo apt-get -y install git libevent-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libdb4.8-dev libdb4.8++-dev libminiupnpc-dev ufw virtualenv python-pip dh-autoreconf pkg-config build-essential libssl-dev
sudo apt-get -y upgrade
Reboot
sudo reboot
Configure swap (just in case)
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Configure Firewall
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 6270/tcp
sudo ufw enable
Get source and compile
cd ~
mkdir masternode
cd masternode
git clone https://github.com/galactrum/galactrum.git
cd galactrum
./autogen.sh
./configure
make
Move to /usr/bin
cd src
sudo mv ./galactrum-cli /usr/bin/
sudo mv ./galactrumd /usr/bin/
sudo mv ./galactrum-tx /usr/bin/
Test it
galactrumd -daemon
galactrum-cli getinfo
galactrum-cli stop
Setup config
vi ~/.galactrum/galactrum.conf
rpcuser=[randomstring]
rpcpassword=[randomstring2]
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
externalip=IP
masternodeprivkey=[MASTERNODEGENKEY]
masternode=1
Start the daemon again
galactrumd -daemon
Install sentinel
cd ~/masternode/galactrum
git clone https://github.com/galactrum/sentinel
cd ~/masternode/galactrum/sentinel
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
deactivate
Make sentinel run by cron and start daemon upon reboot
crontab -e
* * * * * cd /home/USERNAME/masternode/galactrum/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
@reboot galactrumd -daemon
--------------------------
Start the masternode on the personal wallet side.
./galactrum-cli masternode start-alias ALIAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment