Skip to content

Releases: phoreproject/Phore

v1.8.0

26 Oct 17:29
v1.8.0
0e34572
Compare
Choose a tag to compare

v1.8.0 Release Notes

v1.8.0 is an optional, recommended release for all wallets and masternodes.

A major portion of this release upgrades the build system and updates many of the underlying libraries, including moving to Qt 5.9.7, and dropping support for Qt4. It has also enabled us to have one release built with the gitian build system that works for all supported version of MacOS (10.10+) up to and including the latest version (12.0.1 aka Monterey). It also includes a number of upgrades to the regression test system, bug fixes, and updates to the zerocoin library in addition to the specific changes outlined below.

Phore Core version 1.8.0 is now available from:

https://phore.io/

Please report bugs using the issue tracker at github:

https://github.com/phoreproject/phore/issues

New/Improved Features

  • Optional hiding of Orphan Stakes. When there are multiple blocks created at the same height, after the blockchain reaches consensus on the best block, any others are discarded and called "orphans". Previously, the only way to remove orphaned staking and masternode reward transactions from the transaction history tab view was to perform a reindex or resync of the blockchain--this feature allows a user to hide those orphan transactions. This feature can be accessed in the Options dialog box, or with a right-click context menu in the transaction history tab.
  • Backupwallet RPC Sanity. As an additional measure to prevent accidental overwriting. of the currently in use wallet.dat file, the RPC has been changed to prevent this to avoid potential data corruption.
  • Getreceivedbyaddress RPC update. This RPC has been improved to provide a more informative error code when called for an address not present in the current wallet.
  • Getblock & Getblockheader RPC update. A new mediantime field is now returned as part of these RPC commands.
  • Getwalletinfo RPC update. This RPC now displays the user's configured transaction fee (paytxfee)
  • The current protocol version for the Phore Android wallet (70002) has been enabled in the Phore Core wallet to allow mobile wallets to connect to full Phore nodes.

Other Changes

  • Disallow Qt4. The build script now no longer will allow users to attempt to compile the wallet using Qt4.
  • Deprecation work on OpenSSL. The dependencies on OpenSSL within the zerocoin library have been replaced with GMP (libgmp).
  • The gitian build process has been updated to use bionic (Ubuntu 18.04) instead of trusty. Compiling using gitian will now require the gitian build machine to use bionic.
  • Refactoring changes to improve code organization and coding standards.

How to Upgrade Wallets and Masternodes

Instructions for upgrading Phore Core wallets and masternodes, as well as instructions for using a bootstrap.dat file or a Phore blockchain snapshot to accelerate the blockchain syncing process are provided here: https://forum.phore.io/t/upgrading-wallets-and-masternodes-bootstrap-dat-and-snapshots/375

Credits

Wang
Kolby
Mike

v1.7.1

12 Oct 04:17
v1.7.1
9dff173
Compare
Choose a tag to compare

v1.7.1 Release Notes

v1.7.1 is an MANDATORY release for all wallets and masternodes. It includes the makeairdropfile RPC command that is needed for the Graphene airdrops, and also contains some staking consensus rule changes that will take effect at a future date. .

Phore Core v1.7.1 is now available from:

https://phore.io/

Please report bugs using the issue tracker at github:

https://github.com/phoreproject/phore/issues

Highlighted Changes

  • makeairdropfile command for Graphene airdrops.
  • Staking consensus rule changes that provide extra checks preventing certain types of transactions that should not be allowed (and probably were already not allowed).

How to Upgrade Wallets

Shut down the older version wallet, shut it down. Wait until it has completely
shut down (which might take a few minutes for older versions), then run the
installer (on Windows) or just copy over /Applications/Phore-Qt (on Mac) or
phored/phore-qt (on Linux).

How to Upgrade Masternodes

When upgrading masternodes, upgrade your controller wallet first. There are two ways people have installed masternodes, and to know how to upgrade, you first need to know which method yours was installed with. If you know you have more than one masternode running on a single VPS, then your masternodes were installed with the VPS installation script, and you can proceed to that section.

For those running a single masternode on a VPS, log in to your masternode VPS, and run the following command to see how the phored daemon is running:

ps -ef | grep phored

For server with an active masternode, that will print out the line you just ran (ps -ef etc.) and also one line that shows the running phored daemon command.

For masternodes installed with the VPS installation script, it will look like this:

mastern+ 20646 1 1 Jul12 ? 00:19:02 /usr/local/bin/phored -daemon -pid=/var/lib/masternodes/phore1/phore.pid -conf=/etc/masternodes/phore_n1.conf -datadir=/var/lib/masternodes/phore1

If you see this, use the [VPS upgrade method](### VPS Installation Script Method)

For masternodes installed with either the original type-in-all-the-commands way, or with liray-undelich's masternode automation script, it will look more like this:

root 20646 1 1 Jul12 ? 00:19:02 phored -daemon

If you see this, use the [other upgrade method](### Other Installation Method)

There could be some variations, but the main difference that matters is the -conf=/etc/masternodes/phore_n1.conf part. That is a clear sign of the VPS installation script, and if nothing is there like that, it is one of the other methods.

VPS Installation Script Method

For a single masternode installed with the VPS script method, upgrading the masternode can be done with the following commands after logging in to your VPS, with each command on a separate line, pressing Enter after each one:

rm -rf /root/vps
git clone https://github.com/phoreproject/vps
cd /root/vps
./install.sh -p phore -u
After that completes, then type:

systemctl restart phore_n1
To verify the status of the masternode after restarting with the upgraded version, type:

phore-cli --conf=/etc/masternodes/phore_n1.conf masternode status
If it says started successfully, that may be all you need to do. If it tells you that it is a hot node awaiting activation, go back to your controller wallet, open the debug console, and type the following, replacing "aliasname" with the name you used for your masternode:

startmasternode alias false "aliasname"

Other Installation Method

For anyone who used the phore-masternode-automation script, that also has upgrade instructions that can be found at the link below, which really is just logging in to your VPS and entering the following command all on one line:

curl -s https://raw.githubusercontent.com/liray-unendlich/phore-masternode-automation/master/masternode-setup.sh | bash -s -- -u -v 1.6.4
For those who installed masternodes with another method, you can download the linux binaries to your VPS, replace them in either /root or /usr/local/bin depending on where you have them installed, and restart your masternodes.

cd /root
wget https://github.com/phoreproject/Phore/releases/download/v1.7.1/phore-1.7.1-x86_64-linux-gnu.tar.gz
tar zxvf phore-1.7.1-x86_64-linux-gnu.tar.gz
mkdir phore-old
mv /usr/local/bin/phore* phore-old/
cp /root/phore-1.7.1/bin/phore* /usr/local/bin/
phore-cli stop
phored -daemon
After either of these methods, check the status of the masternode on the VPS with:

phore-cli masternode status
If it tells you it is not a masternode, wait a minute and try again. If if says it is awaiting remote activation, go back to your wallet and start it with the following command in the debug console, replacing with the name you gave it in your wallet:

startmasternode alias false
After that, you can verify it is working with a couple of steps. First, on the VPS, type:

phore-cli masternode status
That should now say it is started successfully. Then after about 15 or 20 minutes from when you started the masternode, verify on your Phore wallet masternode tab, in the Active column, that the time has started counting up from zero. If it is, you're in good shape.

Reinstalling using a new VPS

You also have the option of starting over with a new VPS, and following one of the two mostly-automated VPS installation script guides available here:

https://github.com/phoreproject/vps
https://github.com/liray-unendlich/phore-masternode-automation

If you do that, you can set up the new VPS and then delete your old VPS once you have the new one ready to activate.

Syncing the blockchain with bootstrap.dat

It is more secure and recommended to sync the Phore blockchain over the network from other Phore nodes. However, if you have issues with your Phore wallet/masternode syncing the blockchain, for example if it gets stuck on a specific block and won't continue syncing, in some cases it may help to use a bootstrap.dat file that provides a local copy of all of the blocks up to a certain point. The team has provided a recent bootstrap.dat file to help with troubleshooting in these cases. Unless you have a very slow Internet connection, it is not significantly faster to load blocks from a bootstrap.dat file than it is to load it over the network--it is mostly useful in cases when a user is having issues with that completing successfully.

For last resort troubleshooting where even the bootstrap.dat is failing, we have also provided a snapshot of the key folders in the Phore data directory

Any time you are using either a bootstrap.dat file or a snapshot of the Phore data directory, you use this at your own risk. Do not use bootstrap.dat or snapshot files that are from any unofficial sources, as your node is trusting that the data is from the correct Phore blockchain.

To use the bootstrap.dat file, shut down your wallet or masternode if it was already running, download, uncompress and move the file to the Phore data directory, and start your wallet/masternode. It will load the blockchain up to the last block contained in the bootstrap.dat file and then switch to loading blocks over the network.

Phore Snapshot

It is more secure and recommended to sync the blockchain online from the Phore network. However, if you have issues with your Phore wallet/masternode syncing the blockchain, or when even the bootstrap.dat does not work, we have provided a snapshot of the key folders in the Phore data directory. Syncing the blockchain with the snapshot will be faster, but is less secure because your wallet/masternode is trusting that all of the previous blocks in the snapshot are valid and accurate.

Using a bootstrap.dat file or a snapshot of the Phore data directory are done at your own risk. Never use bootstrap.dat or snapshot files from any unofficial sources.

Syncing the blockchain with the Phore Snapshot:

If your wallet/masternode has never been run before, start your wallet/masternode to have it create the initial Phore data directory. If you have an existing wallet you can skip this step.
Shut down the wallet/masternode.
Delete the following folders: blocks, chainstate, sporks, and zerocoin.
Download and uncompress the same folders into the Phore data directory.
Start your wallet/masternode.
Your wallet/masternode should load the snapshot database and continue syncing the blockchain from that point forward.

Notes on the above process:

The default locations of the Phore wallet data directory that contains the four folders above can be found in our wallet troubleshooting FAQ: https://forum.phore.io/t/phore-wallet-troubleshooting-frequently-asked-questions-faq/106

For Phore masternodes, the default Phore data directory location for masternodes installed using the VPS script method would be /var/lib/masternodes/phore1, and if you are running more than one masternode on the VPS, you can use /var/lib/masternodes/phore2, and so on for each masternode.

For Phore masternodes installed using other methods, in most cases the Phore data directory will be found in the /root/.phore directory.

On Windows, 7zip is one option to uncompress .tar.gz files. Please note you have to run the file through 7zip twice--once to unzip the gzipped file into a tar file, and a second time opening the tar file to extract the individual folders and files it contains.

For OSX or Linux, after deleting the four folders listed above, you can copy the snapshot file into the Phore data folder, navigate to that folder using Terminal, and uncompress it using the command tar zxvf PhoreSnapshot.tar.gz

Credits

Wang King
Mike Trisko

v1.7.1-rc5

17 Aug 03:40
v1.7.1-rc5
468948e
Compare
Choose a tag to compare
v1.7.1-rc5 Pre-release
Pre-release

For testing only.

v1.7.1-rc4

01 Aug 16:03
v1.7.1-rc4
Compare
Choose a tag to compare
v1.7.1-rc4 Pre-release
Pre-release

For testing only.

v1.7.1-rc3

31 Jul 14:11
1469583
Compare
Choose a tag to compare
v1.7.1-rc3 Pre-release
Pre-release

For testing only.

v1.7.1-rc2

29 Jul 17:17
v1.7.1-rc2
4d2d2b8
Compare
Choose a tag to compare
v1.7.1-rc2 Pre-release
Pre-release

For testing only.

v1.7.1-rc1

19 Jul 18:35
Compare
Choose a tag to compare
v1.7.1-rc1 Pre-release
Pre-release

For Testing Only

v1.7.0

03 Jan 21:19
v1.7.0
77924c1
Compare
Choose a tag to compare

v1.7.0 Release Notes

v1.7.0 is an MANDATORY release for all wallets and masternodes. It includes consensus rule changes that will take effect on January 24th, 2021 (block 1,747,800). Any nodes that have not upgraded by that time will be excluded from the Phore network until they upgrade, and may need to resync the blockchain.

There are two primary changes in this release--one is an improvement to staking security, and another is compatibility for MacOS Big Sur users. For MacOS users running either Catalina or Big Sur, please download the catalina .dmg file below, and for users running High Sierra, please download the High Sierra .dmg below.

Phore Core v1.7.0 is now available from:

https://phore.io/

Please report bugs using the issue tracker at github:

https://github.com/phoreproject/phore/issues

Highlighted Changes

  • Upgraded stake modifier protocol to increase staking security.
  • Compatibility updates to allow the Phore Core wallet to run on MacOS Big Sur.
  • Fixed bug that under rare, unlikely circumstances would potentially cause negative output values in staking transactions.

How to Upgrade Wallets

Shut down the older version wallet, shut it down. Wait until it has completely
shut down (which might take a few minutes for older versions), then run the
installer (on Windows) or just copy over /Applications/Phore-Qt (on Mac) or
phored/phore-qt (on Linux).

How to Upgrade Masternodes

When upgrading masternodes, upgrade your controller wallet first. There are two ways people have installed masternodes, and to know how to upgrade, you first need to know which method yours was installed with. If you know you have more than one masternode running on a single VPS, then your masternodes were installed with the VPS installation script, and you can proceed to that section.

For those running a single masternode on a VPS, log in to your masternode VPS, and run the following command to see how the phored daemon is running:

ps -ef | grep phored

For server with an active masternode, that will print out the line you just ran (ps -ef etc.) and also one line that shows the running phored daemon command.

For masternodes installed with the VPS installation script, it will look like this:

mastern+ 20646 1 1 Jul12 ? 00:19:02 /usr/local/bin/phored -daemon -pid=/var/lib/masternodes/phore1/phore.pid -conf=/etc/masternodes/phore_n1.conf -datadir=/var/lib/masternodes/phore1

If you see this, use the [VPS upgrade method](### VPS Installation Script Method)

For masternodes installed with either the original type-in-all-the-commands way, or with liray-undelich's masternode automation script, it will look more like this:

root 20646 1 1 Jul12 ? 00:19:02 phored -daemon

If you see this, use the [other upgrade method](### Other Installation Method)

There could be some variations, but the main difference that matters is the -conf=/etc/masternodes/phore_n1.conf part. That is a clear sign of the VPS installation script, and if nothing is there like that, it is one of the other methods.

VPS Installation Script Method

For a single masternode installed with the VPS script method, upgrading the masternode can be done with the following commands after logging in to your VPS, with each command on a separate line, pressing Enter after each one:

rm -rf /root/vps
git clone https://github.com/phoreproject/vps
cd /root/vps
./install.sh -p phore -u
After that completes, then type:

systemctl restart phore_n1
To verify the status of the masternode after restarting with the upgraded version, type:

phore-cli --conf=/etc/masternodes/phore_n1.conf masternode status
If it says started successfully, that may be all you need to do. If it tells you that it is a hot node awaiting activation, go back to your controller wallet, open the debug console, and type the following, replacing "aliasname" with the name you used for your masternode:

startmasternode alias false "aliasname"

Other Installation Method

For anyone who used the phore-masternode-automation script, that also has upgrade instructions that can be found at the link below, which really is just logging in to your VPS and entering the following command all on one line:

curl -s https://raw.githubusercontent.com/liray-unendlich/phore-masternode-automation/master/masternode-setup.sh | bash -s -- -u -v 1.6.4
For those who installed masternodes with another method, you can download the linux binaries to your VPS, replace them in either /root or /usr/local/bin depending on where you have them installed, and restart your masternodes.

cd /root
wget https://github.com/phoreproject/Phore/releases/download/v1.7.0/phore-1.7.0-x86_64-linux-gnu.tar.gz
tar zxvf phore-1.7.0-x86_64-linux-gnu.tar.gz
mkdir phore-old
mv /usr/local/bin/phore* phore-old/
cp /root/phore-1.7.0/bin/phore* /usr/local/bin/
phore-cli stop
phored -daemon
After either of these methods, check the status of the masternode on the VPS with:

phore-cli masternode status
If it tells you it is not a masternode, wait a minute and try again. If if says it is awaiting remote activation, go back to your wallet and start it with the following command in the debug console, replacing with the name you gave it in your wallet:

startmasternode alias false
After that, you can verify it is working with a couple of steps. First, on the VPS, type:

phore-cli masternode status
That should now say it is started successfully. Then after about 15 or 20 minutes from when you started the masternode, verify on your Phore wallet masternode tab, in the Active column, that the time has started counting up from zero. If it is, you're in good shape.

Reinstalling using a new VPS

You also have the option of starting over with a new VPS, and following one of the two mostly-automated VPS installation script guides available here:

https://github.com/phoreproject/vps
https://github.com/liray-unendlich/phore-masternode-automation

If you do that, you can set up the new VPS and then delete your old VPS once you have the new one ready to activate.

Syncing the blockchain with bootstrap.dat

It is more secure and recommended to sync the Phore blockchain over the network from other Phore nodes. However, if you have issues with your Phore wallet/masternode syncing the blockchain, for example if it gets stuck on a specific block and won't continue syncing, in some cases it may help to use a bootstrap.dat file that provides a local copy of all of the blocks up to a certain point. The team has provided a recent bootstrap.dat file to help with troubleshooting in these cases. Unless you have a very slow Internet connection, it is not significantly faster to load blocks from a bootstrap.dat file than it is to load it over the network--it is mostly useful in cases when a user is having issues with that completing successfully.

For last resort troubleshooting where even the bootstrap.dat is failing, we have also provided a snapshot of the key folders in the Phore data directory

Any time you are using either a bootstrap.dat file or a snapshot of the Phore data directory, you use this at your own risk. Do not use bootstrap.dat or snapshot files that are from any unofficial sources, as your node is trusting that the data is from the correct Phore blockchain.

To use the bootstrap.dat file, shut down your wallet or masternode if it was already running, download, uncompress and move the file to the Phore data directory, and start your wallet/masternode. It will load the blockchain up to the last block contained in the bootstrap.dat file and then switch to loading blocks over the network.

Phore Snapshot

It is more secure and recommended to sync the blockchain online from the Phore network. However, if you have issues with your Phore wallet/masternode syncing the blockchain, or when even the bootstrap.dat does not work, we have provided a snapshot of the key folders in the Phore data directory. Syncing the blockchain with the snapshot will be faster, but is less secure because your wallet/masternode is trusting that all of the previous blocks in the snapshot are valid and accurate.

Using a bootstrap.dat file or a snapshot of the Phore data directory are done at your own risk. Never use bootstrap.dat or snapshot files from any unofficial sources.

Syncing the blockchain with the Phore Snapshot:

If your wallet/masternode has never been run before, start your wallet/masternode to have it create the initial Phore data directory. If you have an existing wallet you can skip this step.
Shut down the wallet/masternode.
Delete the following folders: blocks, chainstate, sporks, and zerocoin.
Download and uncompress the same folders into the Phore data directory.
Start your wallet/masternode.
Your wallet/masternode should load the snapshot database and continue syncing the blockchain from that point forward.

Notes on the above process:

The default locations of the Phore wallet data directory that contains the four folders above can be found in our wallet troubleshooting FAQ: https://forum.phore.io/t/phore-wallet-troubleshooting-frequently-asked-questions-faq/106

For Phore masternodes, the default Phore data directory location for masternodes installed using the VPS script method would be /var/lib/masternodes/phore1, and if you are running more than one masternode on the VPS, you can use /var/lib/masternodes/phore2, and so on for each masternode.

For Phore masternodes installed using other methods, in most cases the Phore data directory will be found in the /root/.phore directory.

On Windows, 7zip is one option to uncompress .tar.gz files. Please note you have to run the file through 7zip twice--once to unzip the gzipped file into a tar file, and a second time opening the tar file to extract the individual folders and files it contains.

For OSX or Linux, after deleting the four folders listed above, you ca...

Read more

v1.6.5

17 Jul 19:27
d30971b
Compare
Choose a tag to compare

v1.6.5 Release Notes

v1.6.4 is an optional release for all wallets and masternodes.

This release fixes an issue with v1.6.4 that prevented the build from including the GUI core wallet executable for some platforms. For more information about the changes in v1.6.4 and upgrade instructions, please see the v1.6.4 release page:

https://github.com/phoreproject/Phore/releases/v1.6.4

Phore Core version 1.6.5 is now available from:

https://phore.io/

Please report bugs using the issue tracker at github:

https://github.com/phoreproject/phore/issues

Credits

Wang King
Michael Trisko

v1.6.4

02 Feb 22:59
v1.6.4
Compare
Choose a tag to compare

v1.6.4 Release Notes

v1.6.4 is an optional, recommended release for all wallets and masternodes.

A big focus of this release has been on performance improvements. Some operations have been sped up quite substantially--for example the getchaintips operation is over 20 times faster (5.5 seconds -> 0.25 seconds). The speed to connect blocks is about 1.7 times faster, which affects resyncing times as well as adding new blocks. Improvements have been also been made to memory usage, disk operations, processing speeds, and front end processing for large wallets with a lot of history.

There are also some new features--HD addressing has been something we've wanted to add for some time and I think Kolby has done a great job with it. This is mainly designed for new wallets, so you might need to start over if you want to get the full benefit of it. The most obvious benefit to users is that HD addressing will allow you to use seed words as a permanent backup for wallets that are set up with it. There are many more advanced things that we may be able to do with it in the future--e.g., setting up websites that can take payments by generating new addresses, but that don't have the private keys so there is no way a hacker could steal the funds--the private keys can be stored in a separate wallet.

Phore Core version 1.6.4 is now available from:

https://phore.io/

Please report bugs using the issue tracker at github:

https://github.com/phoreproject/phore/issues

New/Improved Features

  • Added ability to unlock wallet during proposal creation process
  • Hierarchical deterministic (HD) addressing. This is an improved method of generating key pairs that uses a master seed that generates new key pairs in a deterministic way, so that it can be recovered and the same key pairs can be re-created using the original master seed.
  • Mnemonic seed words. This goes along with HD addressing and makes it more user friendly by allowing the user to create their master seed using a randomly generated set of 24 seed words. By writing down these words when you set up your wallet and keeping it secure and offline, it will be a permanent, secure backup and could be used at any time in the future to recover your wallet.

IMPORTANT NOTE: HD addressing and seed words are primarily designed for use with NEW wallets. We have included an upgrade path for existing wallets to begin using HD addressing, but this is not recommended. If you do upgrade an existing wallet, any balances on addresses from before the upgrade will not be protected by your seed words, so you would still need your wallet.dat backup to recover your funds.

There is no need to enable HD addressing on masternodes running on a VPS that are not storing any PHR. Upgrading masternodes to v1.6.4 will not automatically upgrade to HD addressing.

If you wish to convert your wallet to use HD addressing, you would need to create the new wallet and then send your PHR from your old wallet to your new wallet. If you are running masternodes, this would require you to re-create your masternodes using new HD generated addresses.

Performance Improvements

  • QT front end performance improvements for wallets with large numbers of transactions (> 20,000). The Qt wallet will now only display the most recent 20,000 transactions. You are still able to do a full CSV export of all transactions. This makes a huge difference to performance for Qt wallets with a lot of transaction history.
  • Replaced mapNextTx with smaller map to reduce memory usage.
  • Removed unnecessary multithreading lock in getrawpmempool
  • Improved performance over 20 times for RPC getchaintips (5.5 seconds -> 0.25 seconds)
  • Added SSE4 assembly support to optimize SHA256 for CPUs that support it.
  • Batching disk writes for flushing operations to wallet database
  • Batching block index writes to improve disk update performance.
  • Use object reference instead of copy to improve performance.
  • Replaced sigcache with cuckoocache for mempool validation operations.
  • Cache full script execution results to connect blocks 1.7 times faster.
  • Improved staking/mining efficiency.

Bug Fixes

  • Added new coin selection algorithm to fix "transaction too large" error that would sometimes happen in wallets with a lot of small UTXOs, such as staking and masternode rewards that have not been combined. The new algorithm detects when this would happen and if possible, chooses a smaller number of larger UTXOs to keep the transaction size under the limit.
  • Fixed issue with editing masternode information using the Qt wallet.
  • Fixed bug in walletframe.cpp that sometimes caused crashes using Qt 5.10.
  • Fixed ability to open proposal description URL by double clicking on proposal in Qt wallet.
  • Disable RPC calls during initialization to avoid certain crash conditions during startup process.
  • Fixed reindex crash bug.
  • Set AA_EnableHighDpiScaling attribute early to eliminate output warning on startup.

Other Changes

  • Updated depends paths for OSX building.
  • Upgraded compatibility with OpenSSL 1.1.
  • Updated checkpoints to help minimize long running forks.
  • Added security warning to debug console.
  • Refactoring changes to improve code organization and coding standards.

How to Upgrade Wallets

Shut down the older version wallet, shut it down. Wait until it has completely
shut down (which might take a few minutes for older versions), then run the
installer (on Windows) or just copy over /Applications/Phore-Qt (on Mac) or
phored/phore-qt (on Linux).

How to Upgrade Masternodes

When upgrading masternodes, upgrade your controller wallet first. There are two ways people have installed masternodes, and to know how to upgrade, you first need to know which method yours was installed with. If you know you have more than one masternode running on a single VPS, then your masternodes were installed with the VPS installation script, and you can proceed to that section.

For those running a single masternode on a VPS, log in to your masternode VPS, and run the following command to see how the phored daemon is running:

ps -ef | grep phored

For server with an active masternode, that will print out the line you just ran (ps -ef etc.) and also one line that shows the running phored daemon command.

For masternodes installed with the VPS installation script, it will look like this:

mastern+ 20646 1 1 Jul12 ? 00:19:02 /usr/local/bin/phored -daemon -pid=/var/lib/masternodes/phore1/phore.pid -conf=/etc/masternodes/phore_n1.conf -datadir=/var/lib/masternodes/phore1

If you see this, use the [VPS upgrade method](### VPS Installation Script Method)

For masternodes installed with either the original type-in-all-the-commands way, or with liray-undelich's masternode automation script, it will look more like this:

root 20646 1 1 Jul12 ? 00:19:02 phored -daemon

If you see this, use the [other upgrade method](### Other Installation Method)

There could be some variations, but the main difference that matters is the -conf=/etc/masternodes/phore_n1.conf part. That is a clear sign of the VPS installation script, and if nothing is there like that, it is one of the other methods.

VPS Installation Script Method

For a single masternode installed with the VPS script method, upgrading the masternode can be done with the following commands after logging in to your VPS, with each command on a separate line, pressing Enter after each one:

rm -rf /root/vps
git clone https://github.com/phoreproject/vps
cd /root/vps
./install.sh -p phore -u
After that completes, then type:

systemctl restart phore_n1
To verify the status of the masternode after restarting with the upgraded version, type:

phore-cli --conf=/etc/masternodes/phore_n1.conf masternode status
If it says started successfully, that may be all you need to do. If it tells you that it is a hot node awaiting activation, go back to your controller wallet, open the debug console, and type the following, replacing "aliasname" with the name you used for your masternode:

startmasternode alias false "aliasname"

Other Installation Method

For anyone who used the phore-masternode-automation script, that also has upgrade instructions that can be found at the link below, which really is just logging in to your VPS and entering the following command all on one line:

curl -s https://raw.githubusercontent.com/liray-unendlich/phore-masternode-automation/master/masternode-setup.sh | bash -s -- -u -v 1.6.4
For those who installed masternodes with another method, you can download the linux binaries to your VPS, replace them in either /root or /usr/local/bin depending on where you have them installed, and restart your masternodes.

cd /root
wget https://github.com/phoreproject/Phore/releases/download/v1.6.4/phore-1.6.4-x86_64-linux-gnu.tar.gz
tar zxvf phore-1.6.4-x86_64-linux-gnu.tar.gz
mkdir phore-old
mv /usr/local/bin/phore* phore-old/
cp /root/phore-1.6.4/bin/phore* /usr/local/bin/
phore-cli stop
phored -daemon
After either of these methods, check the status of the masternode on the VPS with:

phore-cli masternode status
If it tells you it is not a masternode, wait a minute and try again. If if says it is awaiting remote activation, go back to your wallet and start it with the following command in the debug console, replacing with the name you gave it in your wallet:

startmasternode alias false
After that, you can verify it is working with a couple of steps. First, on the VPS, type:

phore-cli masternode status
That should now say it is started successfully. Then after about 15 or 20 minutes from when you started the masternode, verify on your Phore wallet masternode tab, in the Active column, that the time has started counting up from zero. If it is, you're in good shape.

Reinstalling using a new VPS

You also have the option of starting over with a new VPS, and following one...

Read more