INSTALL

The Masternode can be set up with a ip v4/v6 address or with Tor addresses for extra anonymity.

With IP v4/v6

Download Galilel Wallet

All wallets can be found here: https://galilel.org/#wallets

To speed up the synchronisation, you can use bootstrap from cloud

Setup Your Wallet for the Masternode (part 1)

Go to the "Receive" tab, enter a label name and click "Request payment"

Then select "Copy Address"

Go to the "Send" tab, paste the address and send exactly 15 000 Gali. Wait for at least 12 confirmations and then open the "Debug Console"

“Tools” --> “Debug Console”

enter

createmasternodekey

and

getmasternodeoutputs

save the outputs in notepad. The first part of your wallet setup is done. We will know setup the VPS and come back to the wallet after to finish the setup

Setup Your VPS (part 1)

Login to your VPS (via putty, bitvise, terminal, etc...). If you do not know how to login, please refer to your VPS provider instructions

Enter the following command one at a time

wget https://raw.githubusercontent.com/Galilel-Project/galilel-scripts/master/scripts/install_galilel.sh
chmod +x install_galilel.sh
./install_galilel.sh

The script will now install the masternode, the process can take up to 15 minutes. Once the installation is completed, you need to check different synchronisation status with the following commands

galilel-cli getinfo

the line 'blocks' must show the same block as the explorer https://explorer.galilel.org

galilel-cli mnsync status

'RequestedMasternodeAssets' must show 999

Setup Your Wallet Ready for the Masternode (part 2)

Open the Masternode Configuration File

"Settings" --> "Open Masternode Configuration File"

the notepad will open with an example of the input required

You need to enter a new line following the example:

  • replace 'IP:port' with the IP of your VPS and add :36001 at the end of the IP

  • replace 'masternodeprivkey' with the genkey generated earlier

  • replace 'collateral_output_txid' with the outputs generated earlier

  • replace 'collateral_output_index' with the index generated earlier (0 or 1)

So your line will look like this (with each parameters matching your console outputs):

mn1 127.0.0.2:36001 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

Save the file, close and re-open your wallet, then go to the '"Masternode" tab, highlight your masternode and select "Start Alias". You will get a pop-up saying '"asternode started successfully"

Setup Your VPS (part 2)

Back in your VPS, you just need to enter one line of code to confirm that your Masternode has started successfully

galilel-cli getmasternodestatus

this should return

"message": "Masternode successfully started"

Now your node is up and running. First payout ist aprox. 3 times the regular masternode payout frequency

With Tor Address

Overview and Purpose

This guide is for Windows but should work with any platform, the purpose being you have easier control over your nodes and a quick setup without the need to know any linux or use remote access. It will also save you vps costs, the only drawback is that you have to have a computer running 24/7 online but if you stake then you are doing this already. You can run multiple Tor nodes or as many as you need on the one computer

What You Will Need

  1. The latest version of the Galilel coin wallet

  2. The Tor Browser foryour system from here https://www.torproject.org

  3. A computer suitable for running 24/7 online.

Download Galilel Wallet

All wallets can be found here: https://galilel.org/#wallets

To speed up the synchronisation, you can use bootstrap from cloud

Setup Your Main Wallet

Create addresses for how many masternodes you will need and label them mn1, mn2, mn3, mn4 ect... Copy the address and paste them into a text document

Go to the debug window and generate the private keys for your masternodes. Type

createmasternodekey

to generate a private key for every masternode, then copy the private keys and paste them in the text document

Now send the exact collateral (15.000GALI) to each masternode address one at a time, start with mn1, wait for the coins to confirm then type

getmasternodeoutputs

Masternode address you send coins to will create a transaction id like this "a97c835aae17ebde01155c48w8b73e5bd763fee5bb4ff1650c4479578f8e9ed6" : "1"

Now that we have all the info we need saved in the info text document, we now need to backup the wallet (https://galilel.gitbook.io/wiki-en/guides/wallet/backup)

Install Tor Browser and Editing the Torrc File

Download the Tor Browser installation file from https://www.torproject.org and install. When the Tor browser has finished the install we need to edit a file called torrc, this file can be found in the folder Tor Browser\Browser\TorBrowser\Data\Tor. Open the torrc file in a text editor. Once open in the editor you will need to add the following lines of text, (If there is already text in the file, just start underneath it). Add a line for each masternodelike this

HiddenServiceDir \Tor Browser\GALInode1 HiddenServicePort 36001 127.0.0.1:9901 HiddenServiceDir \Tor Browser\GALInode2 HiddenServicePort36001 127.0.0.1:9902 HiddenServiceDir \Tor Browser\GALInode3 HiddenServicePort 36001 127.0.0.1:9903

Make sure your masternode port is 36001and the p2p forward local ports are correct for each node you add 127.0.0.1:990* ect. Save and close the torrc, you might want to make a shortcut to this file on your desktop for quick access later

Creating .Onion Addresses

Start tor browser. If you are not connected behind a proxy simply click connect or if you are add in your details. While connecting this box will popup

Once connected you will be faced with a screen like this below, you can click ‘Test Tor Network Settings’ to make sure it is working

Now you have run the Tor Browser, it has automatically created your onion IP addresses in the folders you used in the torrc config file. Close Tor Browser, then add # to all the command lines in the torrc file to deactivate and to keep a record, like this

# HiddenServiceDir C:\Program Files (x86)\Tor Browser\nodeGALI1# HiddenServicePort 36001 127.0.0.1:9901

then save

Gather Information

Go to the Tor Browser folder and you will see the node folders you specified in the torrc file. In each of these node folders you will find a file called hostname. Open it with a text editor again and it will show you the .onion address. Copy each of the .onion addresses from node1, node2, ect..to the info text document you saved earlier. Save info text document. You should now have all the details needed to setup the masternodes

Setup the Wallet Folders

Now we need to setup the masternode wallet folders for node1, node2, node3...ect. Create a folder on a drive called TORMASTERNODE,example C:\TORMASTERNODE then create 3 more folders inside TORMASTERNODE labeled DATA , EXE , SHORTCUT. Create the folders node1, node2, node3 ect.. In the DATA folder or drag and copy the node* folders from Tor Browser folder

Next copy the galilel-qt.exe file to the \TORMASTERNODE\EXEfolder . You now need to to make copies of the galilel-qt.exe and namethem galilel-tor1.exe, galilel-tor2.exe, galilel-tor3.exe, ect.

Now create a shortcut to each galilel-tor*.exe in the SHORTCUTS folder like this

Shortcuts and Configs

Next we have to edit the shortcuts so the wallets find the blockchain in the DATA/node* folders. Right click the first shortcut, click properties and add this line to the end of the target after 1 space

-datadir=C:\TORMASTERNODE\DATA\node1

Make sure your location (drive letter) of the TORMASTERNODE is correct, above the example is located on C Drive

Now edit the next shortcuts but change the node number so the other wallets can find their own blockchain folder like this

-datadir=C:\TORMASTERNODE\DATA\nodeGALI2
-datadir=C:\TORMASTERNODE\DATA\nodeGALI3
-datadir=C:\TORMASTERNODE\DATA\nodeGALI4
...ect

Once all your shortcuts are edited copy them to your desktop or create a shortcut to the shortcut folder. We now need to open the info document saved earlier

First edit the control wallet galilel.conf & masternode.conf, go to C:\Users***\AppData\Roaming\Galilel folder and open both files in a texteditor

In the galilel.conf add the following without < > brackets

listen=1
server=1
daemon=1
staking=1
rpcuser=<user>
rpcpassword=<password>
# rpcport=36002
# port=9901
rpcallowip=127.0.0.1
# onion=127.0.0.1:9901
maxconnections=256
masternode=1
externalip=<TOR NODE 1.onion>
masternodeaddr=<TOR NODE 1.onion>:36001
masternodeprivkey=<mn1 PRIVATEKEY>
masternodeaddr=<TOR NODE 2.onion>:36001
masternodeprivkey=<mn2 PKEY>
masternodeaddr=<TOR NODE 3.onion>:36001
masternodeprivkey=<mn3 PKEY>
masternodeaddr=<TOR NODE 4.onion>:36001
masternodeprivkey=<mn4 PKEY>

You need to add a rpc user & password, it can be anything except special characters, the MN port must be 36001

Next edit the masternode.conf and add the following lines

# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
mn1 d3nyuybb775ht57hj4.onion:36001 7guk7k9guk7k64jfj8kgkky86ikssed3dsdf45544vfgv77gd5mkyt66hhy 0
mn2 <TOR NODE 2>:<MN PORT> <masternodeprivkey NODE 2> <TXID mn2>
mn3 <TOR NODE 3>:<MN PORT> <masternodeprivkey NODE 3> <TXID mn3>
mn4 <TOR NODE 4>:<MN PORT> <masternodeprivkey NODE 4> <TXID mn4>

Now we have saved the galilel.conf & masternode.conf files for \AppData\Roaming\Galilel. We must now copy all files & folders to each\TORMASTERNODE\DATA\node# folder. Go to your main wallet folder C:\Users\***\AppData\Roaming\Galilel folder. Select and copy all the files and folders from \AppData\Roaming\Galilel to all `\TORMASTERNODE\DATA\node* folders. Make sure you copy to all files & folders to node1, node2 node3, ect...

Once copied go to \TORMASTERNODE\DATA\nodeGALI1 and edit the galilel.conf with a text editor, remove lines that are for NODE2,NODE3, NODE4, ect..

listen=0 staking=0 remove the # before rpcport=9001 port=9901 onion=127.0.0.1:9901

listen=0
server=0
daemon=1
staking=1
rpcuser=<user>
rpcpassword=<password>
rpcport=36002
port=9901
rpcallowip=127.0.0.1
onion=127.0.0.1:9901
maxconnections=256
masternode=1
externalip=<TOR NODE 1.onion>
masternodeaddr=<TOR NODE 1.onion>:36001
masternodeprivkey=<mn1 PRIVATEKEY>

Repeat for all nodes to mach node number

Then open and edit the masternode.conf for \TORMASTERNODE\DATA\node1 and do the same, remove lines that are for mn2, mn3, mn4, ect

# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
mn1 d3nyuybb775ht57hj4.onion:36001 7guk7k9guk7k64jfj8kgkky86ikssed3dsdf45544vfgv77gd5mkyt66hhy 0

Repeat for all nodes to mach node number

Starting the Masternodes

First run all the node wallets and then the main controller wallet from the shortcuts on your desktop, let them all fully sync. Now go to info and check the block number with the Galilel explorer https://explorer.galilel.org/#/ to see if they are correct. Once verified they are all on the correct block number we need to start each node. First node1 wallet go to the masternode tab and right click mn1 the click Start alias. Once mn1 says ENABLED go to node2, node3 wallet ect and repeat Start alias until all say ENABLED. Now they are ENABLED, go to the control wallet and repeat Start alias for mn1, 2, 3 , 4 etc. Once You have all your nodes ENABLED then you just need to restart the wallets after about 20 mins. It should show all your nodes ENABLED and the time the node has been online, if not wait another hour or two and check the masternodes time again

Final Notes

You must have the wallets for node1, node2, node3, 4 ect running 24/7. The control wallet only needs to be running 24/7 if you are staking your rewards. Adding a new masternode is simple just get a new .onion address and follow the rest of the steps to add it. An extra line is needed in the galilel.conf file for Tor icon in each node to work with the new Pivx 3 wallet. onion=127.0.0.1:port Example: If you set your port to 9501 for node1 in the torrc file, then the line would be onion=127.0.0.1:9501