Difference between revisions of "Upgrading the Core Wallet"

From Terracoin Wiki
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
# Shut down your wallet which can take 30-60 seconds.
 
# Shut down your wallet which can take 30-60 seconds.
 
# Download the newest version from terracoin.io.
 
# Download the newest version from terracoin.io.
# On Windows run the installer, and on Mac copy over the .app from the dmg to where you installed the TerracoinCore Wallet before (usually /Applications).
+
# On Windows run the installer, and on Mac copy over the .app from the dmg to where you installed the TerracoinCore Wallet before (usually /Applications).
# Run the new install of the wallet.
+
# Run the new install of the wallet.
 
# Done!
 
# Done!
   
Line 23: Line 23:
 
This will stop, and update your masternode to the most recent version and start it again.
 
This will stop, and update your masternode to the most recent version and start it again.
   
  +
'''* NOTE: if you don't have curl you can use <code>wget</code> instead of <code>curl -O</code> *'''
'''** NOTE: Make sure to issue a new start from your local wallet to make sure the protocol is up to date. **'''
 
   
'''*** NOTE: you should always check your masternode getblockcount against insight to make sure your block count matches ***'''
+
'''** NOTE: Make sure your masternode and local wallet versions match and are on the same block, then issue a *start alias* from your local wallet to make sure the protocol is up to date. **'''
  +
  +
'''*** NOTE: you should always check your masternode <code>getblockcount</code> against insight to make sure your block count matches, if not issue a reindex ***'''
  +
  +
===Tips===
  +
  +
==== Keep Sentinel up to date ====
  +
  +
To keep Sentinel up to date on your VPS add this cronjob to your crontab.
  +
  +
<code>0 */4 * * * cd sentinel && git pull > /dev/null</code>
  +
  +
==== Make sure your masternode restarts if it crashes ====
  +
  +
To have your masternode restart if it crashes add this cronjob to your crontab.
  +
  +
<code>*/10 * * * * if ! pgrep terracoind > /dev/null; then /usr/local/bin/terracoind -daemon; fi</code>
  +
  +
'''* NOTE: cronjob are added to the '''masternode user's''' crontab, if you used the u3mur4 installer script this is '''mn1''' if you used the Terracoin installer script this is '''trcmn''' *'''
  +
  +
'''** NOTE: terracoind is in /usr/local/bin, if it's in the current dir use ./terracoind **'''
  +
  +
''' *** NOTE: sentinel is assumed to be installed in the '''user's root''', if you used the Terracoin or u3mur4's installer script this is '''.terracoincore/sentinel''' *'''

Latest revision as of 17:06, 13 December 2019

Upgrading the Core Wallet

Updating the Windows and Mac Core Wallet

  1. Shut down your wallet which can take 30-60 seconds.
  2. Download the newest version from terracoin.io.
  3. On Windows run the installer, and on Mac copy over the .app from the dmg to where you installed the TerracoinCore Wallet before (usually /Applications).
  4. Run the new install of the wallet.
  5. Done!

Updating a Masternode

We have created a script to easily update your masternode.

Login as root to your VPS which hosts the masternode and run the code below.

Upgrade ONLY

rm -f trc-updater; curl -O https://raw.githubusercontent.com/terracoin/terracoin/master/trc-updater; sudo bash trc-updater

Upgrade or Downgrade

rm -f trc-updater; curl -O https://raw.githubusercontent.com/terracoin/terracoin/master/trc-updater; sudo bash trc-updater -f

This will stop, and update your masternode to the most recent version and start it again.

* NOTE: if you don't have curl you can use wget instead of curl -O *

** NOTE: Make sure your masternode and local wallet versions match and are on the same block, then issue a *start alias* from your local wallet to make sure the protocol is up to date. **

*** NOTE: you should always check your masternode getblockcount against insight to make sure your block count matches, if not issue a reindex ***

Tips

Keep Sentinel up to date

To keep Sentinel up to date on your VPS add this cronjob to your crontab.

0 */4 * * * cd sentinel && git pull > /dev/null

Make sure your masternode restarts if it crashes

To have your masternode restart if it crashes add this cronjob to your crontab.

*/10 * * * * if ! pgrep terracoind > /dev/null; then /usr/local/bin/terracoind -daemon; fi

* NOTE: cronjob are added to the masternode user's crontab, if you used the u3mur4 installer script this is mn1 if you used the Terracoin installer script this is trcmn *

** NOTE: terracoind is in /usr/local/bin, if it's in the current dir use ./terracoind **

*** NOTE: sentinel is assumed to be installed in the user's root, if you used the Terracoin or u3mur4's installer script this is .terracoincore/sentinel *