/terracoin-script

Unmantained repository

Primary LanguagePythonApache License 2.0Apache-2.0

Terracoin Terracoin Guide

  • Follow the guide carefully and read everything before you ask any question!

Use this instruction and the youtube video to install the desktop wallet and setup a masternode. This guide is for the creation of separate Controller Wallet & Masternode. For Security reasons, THIS IS THE PREFERRED way to run a Masternode. By running your Masternode in this way you are protecting your coins in your private wallet, and are not required to have your local wallet running after the Masternode has been started successfully. Your coins will be safe if the masternode server is hacked.

Table of Content

1. Desktop Wallet Preparation

1.1 Setting up desktop wallet

  1. Download the wallet: win-x64, win-x32, linux-x64, wallet-github, terracoin.io
  2. Start the wallet and select the default data directory. After close the wallet. (This creates the folder structure)
  3. Optionally download blockchain.rar file for faster synchronization and extract it to %appdata%/TerracoinCore/ folder. Override the necessary files.
  4. Start the wallet again and wait for the synchronization. (10min to 1h)
  5. You can optionaly encrypt the wallet (Settings => Encypt wallet) for security reasons. Do not forget the password or you lose the coins that you have.
  6. Backup %appdata%/TerracoinCore/wallet.dat file. This contains your coins. DO NOT LOSE IT!

2. Masternode Setup

2.1 Send the coins to your wallet

  1. Create and copy a new receiving address. (File => Receiving address => New)
  2. Send exactly 5000 coins to this address. (One transaction, pay attention to the fee)
  3. Wait for the conformation.
  4. Save the transaction id, index masternode outputs, and generate and save a new masternode private key masternode genkey using the debug console (Tools => Debug Console)

2.2 Automatic Masternode Setup

  1. Download putty
  2. Start putty and login as root user. (Root password and server ip address is in vultr overview tab)
  3. Paste this command and answer the questions:
apt-get install -y python ; rm installer.py; wget https://raw.githubusercontent.com/endlessloop2/terracoin-script/master/installer.py && python installer.py

What does the script?

  • updates the system
  • secure the server (setups a firewall)
  • download and install the wallet
  • configure the masternode with rpcusername, rpcpassword and mn's private key (the mn is running under mn1 username)
  • download the boostrap file for faster synchronization
  • setup sentinel if it is available
  • setup some cronjob for automatized jobs (autostart masternode on system start, run sentinel every minutes, etc...)

2.3 Add masternode to the desktop wallet

  1. Open %appdata%/TerracoinCore/masternode.conf and add a new line to it. The line format is:
    'AliasName ServerIP:ServerPort PrivateKey TransactionID TransactionIndex'
  2. Open the wallet, wait for synchronization, unlock the wallet
  3. Go to Masternodes tab (Setting => Options => Wallet => Show Masternode Tab)
  4. Click Start All
  5. Wait around 2-10 hour to start receiving coins. Check the masternode address for rewards here: explorer or use your wallet.

3. FAQ

  1. What if I restart the server?
    • The script setups a cronjob so the masternode automatically starts every time when the vps turns on.
  2. How to get masternode profit?
    • Enable coin controll feature (Settings => Options => Wallet => Enable coin controll features)
    • Go to send tab
    • Click the inputs button and select only the reward lines.
    • Click OK
    • You can now send only the selected amount.
    • Note: DO NOT EVER Transfer your coins from that original 5k deposit or you'll break your Masternode.
  3. What is the password for the mn1 accounts?
    • There is no default password. When you create a user it does not have a password yet, so you cannot login with that username until you create a password. There is one other way to act as a new user without its password. As root type su - mn1
    • You need to set a password for the user. Use the passwd command: passwd mn1
  4. I get the following error: "Could not allocate vin"
    • Make sure your wallet fully synced and UNLOCKED.
    • Make sure the masternode address contains exactly 5000 coins.
  5. How many masternodes can I run using one IP/server?
    • You can only use one masternode per ip address.
  6. How do I delete the masternode?
    userdel -r -f mn1
    
  7. I got stuck. Can you help me?
    • First of all try to get help from the community