Announcement

Collapse
No announcement yet.

DAPS Masternode Information/Instructions

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DAPS Masternode Information/Instructions


    Introduction:
    DAPS Masternodes are required to have 1,000,000 DAPS collateral, a dedicated IP address, and be able to run 24 hours a day without more than a 1-hour connection loss. Masternodes get paid using the See-Saw method. For offering their services to the network, Masternodes are paid a portion of block rewards to maintain the ecosystem. This payment will be in DAPS and it serves as a form of passive income to the Masternode owners.

    The DAPS Masternode system is modelled after the PIVX Masternode system. This has many bonuses, including preventing a 51% attack unless both Proof-Of-Stake and Masternode layers are compromised simultaneously. The SBRS (See-Saw Balance Reward System) will have a 60/40 MN/PoS reward split balancing to a maximum of 40/60 MN/PoS reward split. This will give a fair reward to holders.

    While DAPS is trustless, there still needs to be an element of trust. Masternodes on any Masternode chain are seen as a trusted node. This is due to the collateral in coins that is locked away as part of collateralization transaction for the Masternode to be considered trusted. DAPS is by design, anonymous with hidden transaction amounts. This presents a specific problem when collateralizing a Masternode and ensuring that the collateral is correct and locked away. Therefore, all collateralization transactions for Masternodes have a visible amount that is neither Bulletproofed nor part of a Ring signature either. As soon as the Masternode is de-collateralized, the UTXO that was collateralized is sent back to the designated wallet and is treated as a normal transaction.

    If you are interested in minimal setup, we have partnered with Snode for easy to use Masternode services. Read more here: http://bit.ly/DAPS_SNODE
    More information on how to set these up will be added to the guide at a later date.

    Hot/Cold Wallet Setup:
    One of the more common Masternode setups, a “Hot/Cold Wallet Setup” consists of:
    - a “Hot wallet” which is the Masternode running on the VPS and is connected 24/7, accessible via RPC port 53573. Requires static IP address. No coins will be in this wallet.
    - a “Cold wallet” which is the QT wallet that holds all your coins and Masternode collateral. Does not need to be connected 24/7 nor does it need a static IP. All rewards are received to this wallet.

    Requirements:
    - 1,000,000 (1 million) DAPScoin
    - Main computer with QT Wallet ("Control wallet") - This will run the control wallet, hold your collateral 1,000,000 DAPS and can be turned on/off without affecting the masternode.
    - VPS from provider of your choice (Aruba, Digital Ocean, Vultr, etc.) - The computer that will be on 24/7 [Minimum specs: 1GB RAM/20GB HD – Ubuntu 18.04 recommended, Ubuntu 16.04 works with changes]
    - Unique IP address for your VPS / Remote wallet

    Create a Virtual Private Server (VPS)
    Below are instructions on how to setup a VPS with the minimum specs on Aruba and Vultr. This should allow you to run at least 1 Masternode but can work with more with some effort. If you already have one setup, feel free to skip ahead to QT Wallet Configuration.

    Aruba Cloud VPS Setup
    1. Create an account at https://www.arubacloud.com/

    2. Login to Control Panel and click Create New Server.


    3. For Choose Server we will select Smart. This is the cheaper, more efficient option to select.
    {"alt":"Click image for larger version Name:\tclip_image004.jpg Views:\t0 Size:\t19.4 KB ID:\t279","data-align":"none","data-attachmentid":"279","data-size":"full"}

    4. Under Server Information we will enter a name for the server.


    5. Once done that, click Choose Template.
    {"alt":"Click image for larger version Name:\timage_91.jpg Views:\t4 Size:\t5.0 KB ID:\t233","data-align":"none","data-attachmentid":"233","data-size":"full"}

    6. Click Ubuntu 18.04 LTS 64-bit on the left side and then click Choose This Template. You can also choose Ubuntu 16.04 LTS 64-bit.
    {"alt":"Click image for larger version Name:\timage_102.jpg Views:\t4 Size:\t25.7 KB ID:\t244","data-align":"none","data-attachmentid":"244","data-size":"full"}

    7. Under Server account details we will choose a strong password for the VPS. The default username is root.

    8. Under Choose Size we will select Small.[IMG]file:///C:/Users/JD/AppData/Local/Temp/msohtmlclip1/01/clip_image014.jpg[/IMG]

    9. Finally we will click Create Smart Cloud Server and wait for our new VPS to be deployed.

    Vultr VPS Setup
    1. Create an account at https://www.vultr.com/

    2. Login and click the Servers tab. Click the big blue + button on the right to “Deploy New Server”.

    3. Remain on the Vultr Cloud Compute (VC2) tab and choose any location you like.

    4. Under Server Type we will be selecting Ubuntu version 18.04 x64. (Ubuntu version 18.04 x64 also works)

    5. Under Server Size we will be picking their 25GB SSD, 1GB RAM for $5 USD/month.

    6. Skip Additional Features*, Startup Scripts and SSH Keys, down to Server Hostname and Label where you will give your server a name to identify it if you decide to create more than one masternode. I would recommend the hostname and label be the same for ease.
    *Checkmark IPv6 if you would like to run multiple nodes via IPv6 (Free)

    7. Finally click Deploy Now.

    8. Once the server is ready it will look like this:

    9. Click the server name to display the information for it, including the default username and randomly set password. Save that for later.

    QT Wallet Configuration (“Control Wallet” AKA “Cold Wallet”)
    Note: All commands in this step will be done in the QT Wallet and on the main computer.

    1. Enter the Debug Console (Tools > Debug console or press F1 button) and type the following command:
    masternode genkey (This will be the masternode’s private key “privkey”. We’ll use this later.)

    2. Still in Debug Console, enter the following command:
    createprivacyaccount (This will print the long stealth address (99 characters) of your wallet that will be used for receiving DAPS rewards as well as DAPS from others)

    3. Go to the Send tab and send 1,000,000 DAPS to the stealth address you generated in step 2. (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will auto-populate with the name you chose. Also make sure the amount is exactly 1,000,000 DAPS; No more, no less.)

    *Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you if you send 1,000,000 DAPS to an incorrect address. *

    4. Return to the Debug Console and enter this command (if you receive an empty response, wait 10 confirmations and try again.)
    masternode outputs (This gets the proof of transaction of sending 1,000,000 DAPScoin)

    5. Still on the main computer, go into the DAPScoin data directory (default directories per OS below):

    Windows: %APPDATA%/DAPScoin
    Linux: ~/.dapscoin
    Mac: ~/Library/Application Support/DAPScoin

    Shortcut for this is also to right click the Taskbar icon and click "Open Masternode Configuration File". This should open it directly in your default text editor. If not, select a text editor when prompted.

    6. Open masternode.conf in a text editor and add the following line:

    <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:53572 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>

    Example: MN1 127.0.0.1:53572 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKz h c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e73 31db8ce018716999 1

    Substitute it with your own values and without the “<>”s and save.

    We are done with the Control Wallet for now but will come back to it once the VPS side is set up.

    DAPScoin Daemon Installation and Configuration on VPS (“Hot Wallet”)
    Note: All commands in this step will be performed on the VPS using putty or an SSH application of your choice. All commands are case sensitive. You can right click to paste commands from clipboard.

    1. Download or compile the latest version of the DAPScoin daemon onto your VPS. It’s recommended to put the files in /usr/local/bin folder to make it easier to execute the commands. To download and extract to this folder you can use:

    wget https://github.com/DAPScoin/DAPS/archive/linux.zip (link doesn’t work yet)
    sudo unzip linux.zip -d /usr/local/bin

    2. Log on to the the VPS console and change to the DAPS data directory (~/.dapscoin) by typing the command below:
    cd ~/.dapscoin

    3. Open the dapscoin.conf in your favorite text editor (vi used for example):
    vi daspcoin.conf
    then press i to go into insert mode and make the configuration file look like this:
    rpcuser=long random username
    rpcpassword=longer random password
    rpcallowip=127.0.0.1
    server=1
    daemon=1
    logtimestamps=1
    maxconnections=256
    masternode=1
    externalip=your unique public ip address
    masternodeprivkey=Result of Step 1
    Make sure to replace rpcuser and rpcpassword with your own, as well as the externalip and masternodeprivkey.
    To save and exit the editor press Esc then :wq! then press Enter.

    4. Now change to the directory you have dapscoind and run the command:
    ./dapscoind -daemon

    5. Allow it to sync. To check the progress use the command:
    ./dapscoin-cli getblockchaininfo

    Final Steps (performed in the “Cold Wallet”)
    Note: Make sure the Control Wallet and DAPScoin Daemon are both fully synced before proceeding.
    1. Restart the Control Wallet and go to the Masternodes tab.

    2. Right click the line of the Masternode you would like to start and click Start alias.

    If you have more than one to start, you can click Start all instead.

    If you run into any issues, head to the Troubleshooting section below.

    Securing Your VPS
    1. Login to the VPS and make sure your system is up to date with this command:
    sudo apt-get update && sudo apt-get upgrade -y

    2. Install Fail2ban by entering this command:
    sudo apt-get install fail2ban -y

    3. Allow SSH and DAPScoin ports in Uncomplicated Firewall (UFW):
    sudo ufw allow ssh
    sudo ufw allow 53572
    sudo ufw allow 53573

    4. Enable UFW with this command and you are all set:
    sudo ufw enable

    Single PC Setup
    QT Wallet Configuration
    Note: All commands in this step will be done in the QT Wallet.

    1. Enter the Debug Console (Tools > Debug console or press F1 button) and type the following command:
    masternode genkey (This will be the masternode’s private key “privkey”. We’ll use this later.)

    2. Still in Debug Console, enter the following command:
    createprivacyaccount (This will print the long stealth address (99 characters) of your wallet that will be used for receiving DAPS rewards as well as DAPS from others)

    3. Go to the Send tab and send 1,000,000 DAPS to the stealth address you generated in step 2. (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will auto-populate with the name you chose. Also make sure the amount is exactly 1,000,000 DAPS; No more, no less.)

    *Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you if you send 1,000,000 DAPS to an incorrect address. *

    4. Return to the Debug Console and enter this command (if you receive an empty response, wait 10 confirmations and try again.)
    masternode outputs (This gets the proof of transaction of sending 1,000,000 DAPScoin)

    5. On your PC, go into the DAPScoin data directory (default directories per OS below):
    Windows: %APPDATA%/DAPScoin
    Linux: ~/.dapscoin
    Mac: ~/Library/Application Support/DAPScoin
    Shortcut for this is also to right click the Taskbar icon and click "Open Masternode Configuration File". This should open it directly in your default text editor. If not, select a text editor when prompted.

    6. Open masternode.conf in a text editor and add the following line:
    <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:53572 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>
    Example: MN1 127.0.0.1:53572 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKz h c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e73 31db8ce018716999 1
    Substitute it with your own values and without the “<>”s and save.

    7. Open the dapscoin.conf in your favorite text editor:
    rpcuser=long random username
    rpcpassword=longer random password
    rpcallowip=127.0.0.1
    server=1
    daemon=1
    logtimestamps=1
    maxconnections=256
    masternode=1
    externalip=your unique public ip address
    masternodeprivkey=Result of Step 1
    Make sure to replace rpcuser and rpcpassword with your own, as well as the externalip and masternodeprivkey.
    Save and exit.

    8. Now restart the QT wallet.

    9. Allow it to sync.

    Final Steps (performed in the QT Wallet)
    Note: Make sure your QT wallet has been restarted and is fully synced before proceeding.

    1. Go to the Masternodes tab.

    2. Right click the line of the Masternode you would like to start and click Start alias.[IMG]file:///C:/Users/JD/AppData/Local/Temp/msohtmlclip1/01/clip_image045.jpg[/IMG]
    If you have more than one to start, you can click Start all instead.

    If you run into any issues, head to the Troubleshooting section below.

    Troubleshooting
    Permission denied when executing dapscoind, dapscoin-cli or others, enter the command:
    chmod +x dapscoind and/or chmod +x dapscoin-cli

    “error while loading shared libraries: libboost_program_options.so.1.65.1: cannot open shared object file: No such file or directory” or other shared libraries issues, enter the following commands on the VPS, each being it’s own line:

    sudo add-apt-repository ppa:bitcoin/bitcoin -y
    sudo apt update
    sudo apt install libdb4.8-dev libdb4.8++-dev libevent-dev libminiupnpc-dev libqrencode-dev -y
    sudo apt install libboost-all-dev libzmq3-dev -y

    If your masternode keeps going to EXPIRED or REMOVE, there are a few things that need to be checked.
    1. Check and make sure that the dapscoind process is running on the server using the top command. This command pulls up the Linux equivalent of the Task Manager. Once you enter top, the dapscoind process should be near the top of the list if it is actually running, though it may take about 30 seconds to appear on the list. Press CTRL + C to close.
    a. If dapscoind isn't running, start it.
    1. If it won’t start, look in your dapscoin.conf for any sort of spelling errors or any extra spaces on the end of a line. If it still won’t start, delete your dapscoin.conf with the command rm ~ /.dapscoin/dapscoin.conf and remake it.
    2. If it does start, restart your masternode in the QT wallet.
    b. If dapscoind is running, check and make sure that the masternode genkey and server externalip in dapscoin.conf are correct.
    1. Check and make sure that the masternode.conf on your local PC is correct. Each masternode should be on its own line, with a different genkey and transaction ID.
    2. While dapscoind is running, enter the command dapscoin-cli getinfo and check the version number. Ensure it is correct.

    If your masternode still isn't working, reach out to us on Discord or Telegram for more assistance.

    If you have any suggestions or fixes, please let us know.
    Last edited by lyricidal; 29th August 2019, 10:53 PM.

  • #2
    Where is the multiple MN in a single VPS guide? I just need to change the "masternode=1" to the desired mn number?

    Comment


    • #3
      Originally posted by KINGer_C View Post
      Where is the multiple MN in a single VPS guide? I just need to change the "masternode=1" to the desired mn number?
      I agree with you. There are lots of people out there waiting for enabling multiple masternodes.

      Comment


      • #4
        These guides will be released as we get closer to mainnet

        Comment


        • #5
          Originally posted by KINGer_C View Post
          Where is the multiple MN in a single VPS guide? I just need to change the "masternode=1" to the desired mn number?
          I can't wait to see this guide

          Comment


          • #6
            Can this guide be updated with the current wallet download files, etc.?

            Comment


            • #7
              If it helps anyone, here are the commands that I used with the new v1.0.2 zip file... Some of it may not be 100% correct/efficient, but it worked for me...

              wget https ://github.com/DAPSCoin/DAPSCoin/releases/download/1.0.2/master_linux-v1.0.2.zip (remove space after https)
              sudo apt-get install unzip -y
              sudo unzip master_linux-v1.0.2.zip -d /usr/local/bin
              cd /usr/local/bin
              chmod u+x dapscoind
              chmod u+x dapscoin-cli
              chmod u+x dapscoin-poa-minerd
              chmod u+x dapscoin-qt
              dapscoind -daemon
              dapscoin-cli stop
              cd ~/.dapscoin
              vi dapscoin.conf
              dapscoind -daemon
              dapscoin-cli getblockchaininfo
              ./dapscoin-cli masternode status
              Last edited by JeromeS13; 21st October 2019, 09:03 AM.

              Comment


              • #8
                Originally posted by JeromeS13 View Post
                If it helps anyone, here are the commands that I used with the new v1.0.2 zip file... Some of it may not be 100% correct/efficient, but it worked for me...

                wget https ://github.com/DAPSCoin/DAPSCoin/releases/download/1.0.2/master_linux-v1.0.2.zip (remove space after https)
                sudo apt-get install unzip -y
                sudo unzip master_linux-v1.0.2.zip -d /usr/local/bin
                cd /usr/local/bin
                chmod u+x dapscoind
                chmod u+x dapscoin-cli
                chmod u+x dapscoin-poa-minerd
                chmod u+x dapscoin-qt
                dapscoind -daemon
                dapscoin-cli stop
                cd ~/.dapscoin
                vi dapscoin.conf
                dapscoind -daemon
                dapscoin-cli getblockchaininfo
                ./dapscoin-cli masternode status
                I was able to follow the installation steps but I can't activate my Masternode. After "Final Steps (performed in the QT Wallet)" the QT Wallet shows "ACTIVATED", but after a while, can't see the masternode anymore. 10 minutes or so, the status changes to "MISSING" again.
                On the masternode side, on my server, when I use the command "./dapscoin-cli masternode status" the return is:

                error: {"code":-1,"message":"Masternode not found in the list of available masternodes. Current status: Not capable masternode: Hot node, waiting for remote activation."}

                Any ideas about what am I doing wrong?

                Comment


                • #9
                  I was able to start the masternode inserting this command on the hot wallet:

                  ./dapscoin-cli masternode start all

                  I got this message from "./dapscoin-cli masternode status" after that:

                  ./dapscoin-cli masternode status
                  {
                  "txhash": <my_hash>,
                  "outputidx": <my_idx>,
                  "netaddr": <my_ip>,
                  "addr": <my_correct_cold_wallet_addr>,
                  "status": 4,
                  "message": "Masternode successfully started"
                  }

                  Is it a valid activation flow?

                  Comment


                  • #10
                    Originally posted by Guedz View Post
                    I was able to start the masternode inserting this command on the hot wallet:

                    ./dapscoin-cli masternode start all

                    I got this message from "./dapscoin-cli masternode status" after that:

                    ./dapscoin-cli masternode status
                    {
                    "txhash": <my_hash>,
                    "outputidx": <my_idx>,
                    "netaddr": <my_ip>,
                    "addr": <my_correct_cold_wallet_addr>,
                    "status": 4,
                    "message": "Masternode successfully started"
                    }

                    Is it a valid activation flow?
                    Just a little update: the local command "./dapscoin-cli masternode start all" to start the masternode on the hot wallet worked and I was able to receive rewards on my cold wallet after some hours. I am not sure why, but it seems that qt-wallet remote "start alias" has some bug, or I configured something wrong on the masternode.conf file. However, I was not able to figure out exactly what it could be.
                    Anyway, I hope the info can be of some help to someone in the future.

                    Comment

                    Working...
                    X