BitGreen Masternode Setup Guide

BitGreen
BitGreen
Nov 26, 2019 · 7 min read

BitGreen Masternode Configuration

This guide is for the new BITG masternode configuration.You will need to complete the Chain Swap Process to restore your balances on the new BitGreen blockchain. Read the Chain Swap Guide:

After you restore your balances, it’s time for masternode configuration. Before diving in, you should have a basic understanding of how masternodes work. Read the article “How To Mine BitGreen”, for the basics of cryptocurrency with masternodes. Make sure to safely configure & encrypt your wallet before you follow this guide to deploy masternodes from your BitGreen wallet.

Safety First

We use Discord Chat for assistance with the configuration. Avoid scams by discussing wallet support in public channels, do not direct message. Team members will not reach out to you. If you must DM, contact team members who you messaged first and confirmed to be a team member. Never send your wallet file or private keys. Do not screen share for any reason.

Part 1: Masternode Configuration

The new configuration different than PIVX based masternode configurations. Your masternode config information goes into the BitGreen client directly using the Console. No more saving to text file using notepad. Here is the format we will put into the console:

protx register_prepare HASH INDEX IP:PORT Owner PUBLIC Owner 0 Payout (Payout)

Step 1:

Copy the code above into a notepad. We will collect the data we need. Paste over each item as we find it.

Step 2:

Generate 2 addresses in the Receive tab of your wallet:

  1. Owner1
  2. MN1

Step 3:

The Owner address goes into your line of code twice. Copy the address for Owner and paste it into your notes twice.

Step 4:

While you are still in the Console, use this command to set the transaction fee:

settxfee 0.0002

If you forget to do this you might get an error later.

Step 5:

While the transaction is confirming, let’s work in the Console. Open up the Console (Tools — Console) and make sure the wallet is fully unlocked. Use this command:

walletpassphrase “PASSWORD” 600

Type your password where it says “PASSWORD”.

Step 6:

Send a transaction of exactly 2500 BITG to your MN1 address.

Step 7:

Generate a new p2sh-segwit address. In the Console type the following command:

getnewaddress Payout p2sh-segwit

Step 8:

This address is the Payout in your line of code. It goes in to the notes twice. Copy the address and paste it in to your notes twice.

Note: You can use the same Payout address for each configuration from now on, no reason to generate a new one every time.

Step 9:

Now, send some BITG to the Payout address. 1 or 10 coins will be plenty.

Now you have 2 pending transactions.

So far we filled the following in the code in your notes:

protx register_prepare HASH INDEX IP:PORT Owner PUBLIC Owner 0 Payout (Payout)

Step 10:

Go to the Transactions tab and locate the 2500 BITG collateral transaction you made in Step 4. Click the transaction to open the Transaction details window. The Transaction ID of this transaction is your HASH.

Paste the HASH into your notes.

Step 11:

Open up the Console (Tools — Console) and type “masternode outputs” and press enter. Find your HASH with the corresponding INDEX (next to “n”):

Your collateral hash is the number next to “n”: in this case 0

Paste the INDEX (it’s just “0” here) into your notes.

We are almost done. Here’s your progress so far:

protx register_prepare HASH INDEX IP:PORT Owner PUBLIC Owner 0 Payout (Payout)

Step 12:

Deploy a $5 Vultr server on Ubuntu 16.04. Don’t know how to deploy a Ubuntu server? Click here for a guide.

Step 13:

Run the Xezz installer by pasting the command below into a blank Ubuntu 18.04 server:

bash <(wget -qO- -o- https://gitlab.com/bitgreen/bitg-docker/raw/master/scripts/preinstall.sh)

(If the command isn’t working, Copy/Paste from here instead)

Let the installer run.

Step 14:

After the installation is complete, it tells you to type the following command:

source ~/.bashrc && install_bitg.sh

(If the command isn’t working, Copy/Paste from here instead)

  • bitg-001 will deploy

NOTE: To install multiple nodes per VPS, simply send the install_bitg.sh command again:

install_bitg.sh

This will automatically create and deploy bitg-002.

Step 15:

  • After a short wait you will have the missing pieces of information
  • You now have the IP:PORT (next to “ip”)
  • Paste the IP:PORT into your notes
  • You also have the PUBLIC key (next to “public”)
  • Paste the PUBLIC key into your notes.

Now you are ready to enter this information into the console:

protx register_prepare HASH INDEX IP:PORT Owner PUBLIC Owner 0 Payout (Payout)

It will look something like this:

protx register_prepare d4a6f30236901bcbbeaa129f678801e9346f2dbb4b97d3bed1a896b95618417f 1 45.32.222.153:9333 GUN7JdHhTkFSqmmoPKPVRWMHFnMG6ADVeL 13d5333f92c37cb6beae608411446417c6e3a090c0ed8ae8b94e7dbe89fff1477873cdb922b935a5bb584a273fc8e318 GUN7JdHhTkFSqmmoPKPVRWMHFnMG6ADVeL 0 3dquQf4vSeJBVXVE6mS2E5U5CHj1yN7zAW (3dquQf4vSeJBVXVE6mS2E5U5CHj1yN7zAW)

Part 2: ProTx Submission

Part 2 is different than previous masternode configurations. After a few commands, your coins will lock & masternode will start immediately after 1 confirmation.

Step 1:

Open the console, and paste the protx code from Part 1:

If you are successful you will see something similar to the above. If you did it correctly, the “collateralAddress” will match the MN1 address where you sent your collateral. You can confirm that this is the case:

collateralAddress matches the MN1 Address

Step 2:

Next, you need to use the “signmessage” command. It’s easy, just copy the results from your console like this:

signmessage *collateralAddress* *signmessage key*

Both *collateralAddress* and *signmessage key* are directly above in the console, so just copy from above:

signmessage GRcnqN7xCqxkhqN9kGgzDH67Jn4UbdQvgf 3dquQf4vSeJBVXVE6mS2E5U5CHj1yN7zAW|0|GUN7JdHhTkFSqmmoPKPVRWMHFnMG6ADVeL|GUN7JdHhTkFSqmmoPKPVRWMHFnMG6ADVeL|3080059abcac1fc2d00db9efa83099521ba6e8693e551b702c5d4d259fc3516d

signmessage command

If you’re successful, you’ll the short line as a response as pictured above.

Step 3

Next you need to use the “protx register_submit” command. This is the final step will enable your masternode & automatically lock your collateral.

protx register_submit *tx* *signmessage_result*

Copy the“tx” from your protx register_prepare results:

And the *signmessage_result* is from the signmessage command you just entered:

Getting the signmessage result

The final command looks like this:

protx register_submit 02000200019ac762a97f68f2afbcfbea753d3c4983c3d8a748d5765bf4071211468ac7b3070000000000feffffff01f82c9a3b000000001976a914707a42329f58975110781b7784f91a7d67a7563e88ac00000000cf0100000000007f411856b996a8d1bed3974bbb2d6f34e90188679f12aabecb1b903602f3a6d40100000000000000000000000000ffff2d20de9924757366d351eecf1c285c015d0114711afcbbd746c613d5333f92c37cb6beae608411446417c6e3a090c0ed8ae8b94e7dbe89fff1477873cdb922b935a5bb584a273fc8e3187366d351eecf1c285c015d0114711afcbbd746c6000017a9148c92d54b9dffc0b6b5251bc3880aa8d23e9b33eb8739def3a6899d7f0088dbf014b2599897affd9ef14e6c94176921d015242fffa500 H4eNk2OwG/1ZSrxN1ZmAvs5Vo3sUb8kFDBXEVykEzjLnXf3wcf+WHEo49skPiXxQ6VThSD9fYnI5+ZGUIkXbTbg=

Step 4:

After you enter the protx register_submit your setup is complete. Your wallet will make a transaction and you will get a hash as a result.

Success! Your masternode will be active after 1 confirmation

  • You don’t need the hash result from the protx register_submit.
  • Your masternode will automatically enable after 1 confirmation.
  • If you restart your wallet you will see the collateral is locked.
  • Check in the Masternodes tab after the confirmation. Check the box that says “My masternodes only” and you will see your Masternode is enabled:

Your masternode is configured and payouts will begin shortly. There is no need to update the masternode.conf file. Masternode information is now stored directly on the BitGreen blockchain.

Multi-Node VPS Tips:

BitGreen allows multiple masternodes on a single IP. This increases the efficiency of our chain and reduces masternode hosting energy consumption and costs for our community and hosting providers.

  • Simply follow the same steps again. You need a unique Owner and MN address every time
  • You can reuse the same Payout address
  • Re-use the same VPS, and enter this command to generate bitg-002:

install_bitg.sh

This gives you a new IP:PORT and PUBLIC key. Everything else about the multi-node process is exactly the same.

FOR TECHNICAL SUPPORT JOIN DISCORD: https://discord.gg/TqyZgtv

BitGreen

We empower changemakers

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store