Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Python script to automatically install and configure a DigitalPrice masternode on a Linux VPS.

License

Notifications You must be signed in to change notification settings

DigitalPrice/masternode-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DigitalPrice

Use this instructions to install the wallet, fix wallet issues and setup one/multiple masternode(s). 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 gets hacked.

Table of Content

1. Desktop Wallet Preparation

1.1 Setup the wallet

  1. Download the wallet
  2. Start and Close the wallet. (creates the folder structure)
  3. Start the wallet and wait for the sync. (30min to 10h depending on the number of the connections)

2. Masternode Setup

2.1 Send the coins to your wallet

  1. Open Console (Help => Debug window => Console)
  2. Create a new address. getnewaddress Masternode1
  3. Send exactly 25000 coins to this address. (One transaction, pay attention to the fee)
  4. Wait for the conformation.
  5. Save the transaction id, index masternode outputs, and generate and save a new masternode private key masternode genkey.
  6. 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.
  7. Backup %appdata%/Dprice/wallet.dat file. This contains your coins. DO NOT LOSE IT!

2.2 VPS setup

  1. Register on Vultr. (or DigitalOcean) (do not forget verify your e-mail)
  2. Send some money (10$ is enough for two months) to your account to deploy a server. (1 server cost 5$/mo, you can pay with bitcoin)
  3. Deploy a new server.
    • Server Type: Ubuntu 16.04
    • Server Size: 5$/mo, 1GB memory (This server is capable to run 3 masternodes. One masternode need 150-300Mb memory)

2.3 Automatic Masternode Setup

  • Note: Use the guides provided on the DigitalPrice website to manually setup the server. That guide maybe outdated.
  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:
wget https://raw.githubusercontent.com/dyegonery/masternode-script/master/digitalprice.py && python digitalprice.py

2.4 Add masternode on the desktop wallet

  1. Open wallet, wait for sync, unlock wallet
  2. Go Masternodes tab
  3. Click create
    • Set a name: Masternode1
    • Set the VPS ip and the port: [Ip:Port]
    • Set the generated private key: step 2.1.5
    • Click Add and after click Start
    • Wait 1 day to start receiving coins. Check your the masternode address here: http://cryptoblock.xyz:30003/
    • Note: You can't edit the masternodes config in the wallet but you can edit the file. %appdata%/Dprice/masternode.conf.

3. FAQ

  1. What if I restart the server?
    • The script setup a cron job so the masternode automaticly starts every time when the vps turns on.
  2. How to get masternode profit?
    • Enable coin controll feature (Settings => Options => Display => Display coin controll feature)
    • Go send tab
    • Select from the input button only the 5 coin lines
    • Click OK
    • You can send selected amount to an address.
    • Note: DO NOT EVER Transfer DP from that original 25k deposit or you'll break your Masternode.
  3. What is the password for the mn1, mn2, ...mnX 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.
  5. How many masternodes can I run using one IP/server?
    • The limit is only the memory. One masternode requires 150-300MB ram. A server with 1GB memory can run 3 masternodes.
  6. My wallet says my masternodes are not running.
    • The wallet will tell you its not running sometimes when it is. If you still receving the masternode rewards then everything is fine.
  7. I got stuck. Can you help me?

About

Python script to automatically install and configure a DigitalPrice masternode on a Linux VPS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%