Knowledge Base

Search Knowledge Base by Keyword

Linux wallet 3.1.0.2 upgrade

The purpose of this guide is to assist Masternode Owners and Stakers upgrading to version 3.1.0.2 of PIVX Core.

This guide has the following assumptions assumptions:
– You have a VPS or Linux server running PIVX Core version 3.1.0 or lower
– You have already updated your control wallet to PIVX 3.1.0.2 (MNO Only)
– You have the knowledge to log into your VPS and locate the ~/pivx-3.0.6/bin folder
– You have made provisions on your VPS for increased resourced utilization (Recommended minimum 2gb of Ram & Dual core CPU)
You have made a backup of your control wallet.dat file

[MNO ONLY] With version 2.3.1 of the PIVX core wallet, there has been changes to the commands that are commonly used when operating a Masternode. Notably RPC calls are no longer made from ./pivxd and command names have changed.

With that said, the following steps will get you started with downloading and starting your Linux PIVX 3.1.0.2 Core Wallet. Go to your 3.0.6 bin directory:cd ~/pivx-3.0.6/bin

  1. Stop your wallet / remote wallet: ./pivx-cli stop
  2. Go back to you home directory: cd ~
  3. From your home directory, download version 3.1.0.2 from the PIVX GitHub: wget https://github.com/PIVX-Project/PIVX/releases/download/v3.0.5.1/pivx-3.1.0.2-x86_64-linux-gnu.tar.gz
    1. The link above is for Ubuntu (or similar), make sure you choose the correct version of the core wallet if you are not using Ubuntu from: https://github.com/PIVX-Project/PIVX/releases
  4. Remove the old 3.1.0 wallet: rm -r /pivx-3.1.0/
  5. Unzip and extract 3.1.0.2:  tar -zxvf pivx-3.1.0.2-x86_64-linux-gnu.tar.gz"
    1. ONLY DO THESE STEPS IF YOU NEED TO RESYNC YOUR BLOCKCHAIN
    2. Go to your pivx data directory: cd ~/.pivx
    3. Remove the Blocks, chainstate, zerocoin, sporks folders and the peers.dat file: rm -rf blocks chainstate zerocoin sporks peers.dat
    4. Download the latest bopotstrap from here: https://github.com/PIVX-Project/PIVX/releases/download/v3.0.6/pivx-chain-1055000-bootstrap.dat.zip ie: wget https://github.com/PIVX-Project/PIVX/releases/download/v3.0.6/pivx-chain-1055000-bootstrap.dat.zip
    5. Unzip the Snapshot: unzip pivx-chain-1055000-bootstrap.dat.zip
    6. Clean up your data directory: rm pivx-chain-1055000-bootstrap.dat.zip
  6. Go to your PIVX 3.1.0.2 bin directory: cd ~/pivx-3.1.0/bin
  7. Start your new linux PIVX client: ./pivxd
  8. Let your wallet finish syncing, you can check its status by: ./pivx-cli getinfo the blocks: # should equal the largest height number of the recent blocks found here: http://www.presstab.pw/phpexplorer/PIVX/index.php
  9. [NON-MNO OWNERS STOP HERE. MNO OWNERS, COMPLETE THE LAST STEPS]
  10. [MNO ONLY] When your wallet is up to date, in your control wallet debug console, run this command: startmasternode alias false <mymnalias> where <mymnalias> is the name of your masternode alias (without brackets)
    1. The following should appear:
      "overall" : "Successfully started 1 masternodes, failed to start 0, total 1",
      "detail" : [
      {
      "alias" : "<mymnalias>",
      "result" : "successful",
      "error" : ""
      }
  11. [MNO ONLY] Back in your masternode VPS console: ./pivx-cli startmasternode local false
    1. The following prompt should appear "Masternode successfully started"
  12. [MNO ONLY] A final check, from your 3.1.0.2 bin directory, type: ./pivx-cli masternode status
    1. To get the following response:
      {
      "txhash" : "33456456474564564564ea2b37d8908f36ff4456454dfffff51311",
      "outputidx" : 0,
      "netaddr" : "45.76.xxx.xxx:51472",
      "addr" : "D6fujcyTC45645645645R7TiCwexx1LA1",
      "status" : 4,
      "message" : "Masternode successfully started"
      }
  13. Get a drink and relax, your masternode is ready