Knowledge Base

Search Knowledge Base by Keyword

Linux core wallet upgrade guide

The purpose of this guide is to assist all Linux core wallet users, including Masternode Owners (MNO) and Stakers, in upgrading to version 3.3.0 of PIVX Core.

Last Updated June 19th 2019

This guide has the following assumptions:
– You have a VPS or Linux server running PIVX Core version 3.2.2 or lower
– You have already updated your controller wallet to PIVX 3.3.0 (MNO Only)
– You have the knowledge to log into your VPS and locate the existing ~/pivx-3.x.x/bin folder
– You have made provisions on your VPS for increased resourced utilization (Recommended minimum is 2GB of Ram & Dual core CPU)
– You have made a backup of your controller wallet’s wallet.dat and masternode.con filee.

[MNO ONLY] Starting with version v2.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. Please see HERE for all masternode RPC changes.

With that said, the following steps will get you started with downloading and starting your Linux PIVX Core Wallet.

  1. Go to your 3.x.x bin directory:cd ~/pivx-3.x.x/bin(where “x” is your existing wallet version number)
  2. Stop your wallet / remote wallet: ./pivx-cli stop
  3. Go back to you home directory: cd ~
  4. From your home directory, download version 3.3.0 from the PIVX GitHub: wget https://github.com/PIVX-Project/PIVX/releases/download/v3.3.0/pivx-3.3.0-x86_64-linux-gnu.tar.gz
    • The link above is for Ubuntu (or similar) linux. Make sure you download the correct version of the core wallet for your OS type.
    • In case this article is outdated, always check what the latest version is from our GitHub.
  5. Remove the old 3.x.x wallet: rm -r /pivx-3.x.x/
  6. Unzip and extract 3.3.0:  tar -zxvf pivx-3.3.0-x86_64-linux-gnu.tar.gz
    • DO THE FOLLOWING SUB-STEPS IF YOU NEED TO RESYNC YOUR BLOCKCHAIN or SKIP TO STEP 7.
    • Go to your pivx data directory: cd ~/.pivx
    • Remove the Blocks, chainstate, zerocoin, sporks folders and the peers.dat file: rm -rf blocks chainstate zerocoin sporks peers.dat
    • Find the latest snapshot url from here or here then download it locally. wget http://178.254.23.111/~pub/PIVX/Daily-Snapshots/2019-06-19/BlockChain-1861807.zip
    • Unzip the Snapshot: unzip BlockChain-1861807.zip
    • Clean up your data directory: rm BlockChain-1861807
  7. Go to your PIVX 3.3.0 bin directory: cd ~/pivx-3.3.0/bin
  8. Start your new linux PIVX client: ./pivxd
  9. 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 in the block explorers such as this or this.
  10. NON-MNO OWNERS, YOUR UPGRADE IS COMPLETE! MNO OWNERS, COMPLETE THE REMAINING STEPS.
  11. [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 the < > brackets)
    1. The following should appear:
      "overall" : "Successfully started 1 masternodes, failed to start 0, total 1",
      "detail" : [
      {
      "alias" : "<mymnalias>",
      "result" : "successful",
      "error" : ""
      }
  12. [MNO ONLY] Back in your masternode VPS console: ./pivx-cli startmasternode local false
    1. The following prompt should appear "Masternode successfully started"
  13. [MNO ONLY] A final check, from your 3.3.0 bin directory, type: ./pivx-cli getmasternodestatus
    1. To get the following response:
      {
      "txhash" : "33456456474564564564ea2b37d8908f36ff4456454dfffff51311",
      "outputidx" : 0,
      "netaddr" : "45.76.xxx.xxx:51472",
      "addr" : "D6fujcyTC45645645645R7TiCwexx1LA1",
      "status" : 4,
      "message" : "Masternode successfully started"
      }
  14. Get a drink and relax, your masternode is ready!
error20
Wordpress Social Share Plugin powered by Ultimatelysocial