Updating DASH/Darkcoind binaries:

 

(If you have any comments or questions about this guide, please let me know in this thread on DashTalk.org.)

 

(This tutorial assumes that you are updating your DASH/Darkcoin binaries on a secure "hardened" Linux server according to these instructions, and that you installed the daemon according to these instructions.  If your installation is different then the steps below may not work for you, or may need to be modified for your situation; in particular, you may need to change the directories referred to below.  Please know what you are doing.)

 

Because DASH is in a state of development, it's often necessary to upgrade to a newer version of the daemon.  Using the tutorials on this site we don't actually compile the daemon, but simply install the binaries.  This allows us to simply archive our current dashd binary (even though we probably won't be needing it) and to replace it with the newer one.  Here are the simple instructions for doing so:

 

Assuming the DASH daemon is running on the server, you will need to stop it first:

dash-cli stop

 

Change to the ~/dash directory:

 

cd ~/dash

 

la (This is just to see what'sl in your ~/dash folder.  It's good to know what's going on.)

 

Now get the new version of dashd.  To know the location visit https://www.dashpay.io/downloads/ and right click on the Linux (tgz) button and copy the location. The location will be used for <new version location>:

wget <new version location> (Probably: wget https://www.dashpay.io/binaries/dash-0.12.0.51-linux64.tar.gz  )

 

 

To find the name of the downloaded archive:

ls

 

The downloaded file name will end with ".tar.gz."  This means it is a compressed archive and will need to be extracted.  Execute the following lines to extract the archive and then delete the original compressed version:

sudo tar -xvzf <downloaded-file-name>
sudo rm <downloaded-file-name>

The name of the uncompressed archive directory should be the same as the name of the compressed downloaded archive, without the ".tar.gz" at the end. To see it execute:

ls

 

Now, remove the old dash daemon and command line interface from /usr/bin replace it with the 64 bit daemon from the downloaded archive, set permissions, and remove the old peers.dat file.

 

sudo rm -r /usr/bin/dashd

sudo rm -r /usr/bin/dash-cli
sudo cp ~/dash/<uncompressed-archive-directory>/bin/dashd /usr/bin/dashd

sudo cp ~/dash/<uncompressed-archive-directory>/bin/dash-cli /usr/bin/dash-cli
sudo chmod 744 /usr/bin/dashd

sudo chmod 744 /usr/bin/dash-cli
sudo chown -R <darkcoin-user>:<darkcoin-user> /usr/bin/dashd (From when DASH was called Darkcoin)
sudo chown -R <darkcoin-user>:<darkcoin-user> /usr/bin/dash-cli (From when DASH was called Darkcoin)
rm ~/.dash/peers.dat

dashd -daemon

dash-cli getinfo  (Just to see that the version number has changed.  It may take a few tries before it's able to "connect to the server."  If you get a message that it cannot connect, just keep trying.  This is often normal.)

 

If you are NOT running a Masternode, STOP...you are done with the upgrade process.

 

If you ARE running a Masternode (with the external wallet on your LOCAL machine, according to the instructions on this site for Installing and Running the DASH Daemon; Optionally Creating a Masternode) you must additionally do some work on your LOCAL computer. In particular, you must update the DASH daemon (much the same as you just did on the REMOTE server) and then you need to follow the procedure to sync the LOCAL wallet with the REMOTE server.

 

We are assuming your LOCAL DASH wallet is still configured as described in the link above, and that it is not currently running.  In that case, run the following on your LOCAL machine to update the daemon (just as you did on the REMOTE server):

 

Assuming the daemon is running on the local machine, you will need to stop it first:

dash-cli stop

 

Change to the ~/dash directory:

cd ~/dash

 

la (This is just to see what'sl in your ~/dash folder.  It's good to know what's going on.)

 

Now get the new version of dashd.  To know the location visit https://www.dashpay.io/downloads/ and right click on the Linux (tgz) button and copy the location. The location will be used for <new version location>:

wget <new version location> (Probably: wget https://www.dashpay.io/binaries/dash-0.11.2.17-linux.tar.gz  )

 

 

To find the name of the downloaded archive:

ls

 

The downloaded file name will end with ".tar.gz."  This means it is a compressed archive and will need to be extracted.  Execute the following lines to extract the archive and then delete the original compressed version:

sudo tar -xvzf <downloaded-file-name>
sudo rm <downloaded-file-name>

Now, remove the old dash daemon and command line interface from /usr/bin replace it with the 64 bit daemon from the downloaded archive, set permissions, and remove the old peers.dat file.

 

sudo rm -r /usr/bin/dashd

sudo rm -r /usr/bin/dash-cli
sudo cp ~/dash/<uncompressed-archive-directory>/bin/dashd /usr/bin/dashd

sudo cp ~/dash/<uncompressed-archive-directory>/bin/dash-cli /usr/bin/dash-cli
sudo chmod 744 /usr/bin/dashd

sudo chmod 744 /usr/bin/dash-cli
sudo chown -R <darkcoin-user>:<darkcoin-user> /usr/bin/dashd (From when DASH was called Darkcoin)

sudo chown -R <darkcoin-user>:<darkcoin-user> /usr/bin/dash-cli (From when DASH was called Darkcoin)
rm ~/.dash/peers.dat

 

You have now updated your LOCAL DASH daemon.  You now need to start the daemon, unlock the wallet, and start the masternode.  Once you have started the masternode, check to see if your ip address is on the masternode list, and then stop your LOCAL DASH wallet.  Here are the steps:

 

Restart your LOCAL DASH wallet:
dashd -daemon

dash-cli getinfo  (Just to see that the version number has changed.  It may take a few tries before it's able to "connect to the server."  If you get a message that it cannot connect, just keep trying.  This is often normal.)

 

Unlock your LOCALwallet. (60 seconds should work fine.)

dash-cli walletpassphrase <wallet-passphrase> <seconds-to-remain-unlocked>


Start the masternode on the local machine

dash-cli masternode start


Execute the following to verify that your REMOTE server ip is now listed.  (Note that if executed on the LOCAL machine you may find that your masternode is the only one listed; if executed on the REMOTE machine, however, you should get a full list of all masternodes.)
dash-cli masternodelist addr


Once your REMOTE server ip is listed (and your LOCAL wallet is locked again after the time you set) stop your LOCAL dashd.  (You can verify that it is locked by running dash-cli getinfo and checking if "unlocked_until:" is equal to zero.)

dash-cli stop


Done!

 

(If you have any comments or questions about this guide, please let me know in this thread on DashTalk.org.)


Donations to Planet Crypton may be sent to any of the addresses below:
 
Bitcoin   BTC   1DX7CwPpTVRtYDNdJmAgu6YiGNiBbCy8TK
Cryptogenic   CGB   5ZayDGUUNYvu9NPrzVtqHdgp84yZ4V715Y
Darkcoin   DRK   XhwsyqCT5pXmfbMCvjkVefcqTAzsUd1y2z
Datacoin   DTC   DKPxTR42T6PtGzfypyUmZx4SNoF1EV1FVK
Devcoin   DVC   1NoNpadN8SmYv8CvjzeD5BPoct52WdYa2T
Digitalcoin   DGC   DKnA78uyScD7a5ZVmr7tYLxwQxX4731Ad3
Dogecoin   DOGE   DCQnicGvMgghUTtGfJgvx2XjzdS8rqmJK8
Feathercoin   FTC   6e1gquKd4yMFKcnJqBZZb9gnTT19FxnPWX
Infinitecoin   IFC   i9gdFXagtpzeQjgtTr6mQThCqpWLgsFR5n
Ixcoin   IXC   xmd2TwspuvVHuW2VuLnVzoFSwVAoiAkqez
Litecoin   LTC   LMrKrZRayv4Cj8qoXhnmjSACNGHCG3d48t
Memorycoin   MMC   MLjbQa2CEwh6rXiCUYFYkwXq1ByBmytzXt
Namecoin   NMC   N7yPYNXxVar8wWz2JpCskSHWJuE4Jmd77k
Novacoin   NVC   4YFx3yoCVsRtv3sLK1XSgAY818AvM3ic25
Peercoin   PPC   PL7rUo6QwZskuY4h4JseyoiqwH3Zsk7fAz
Primecoin   XPM   ARLG4MD6zbU9yENDAKxGvZYixVQNxZE35R
Protoshares   PTS   PbgsjytSatjxAUPhx13Miq6Q9QjcDwq9Vo
Quarkcoin   QRK   QP8ogwaK63nqkgiEUDyw4pZSCSWFp56tsT
Terracoin   TRC   16m2hwePmsQyWE8qEamoiWBZoaG9oRqGZM
Testnet   TEST   mjKJfi4CZ7yrWofuDtF9SjyuoqCkorhek8
Vertcoin   VTC   VscmvCqXHJszXEJ7aUP8FA1AhXanU6BNeE
Worldcoin   WDC   WT5Mj26e2w5XtyvnkyFKvr3muwBYcbd99h
Zetacoin   ZET   ZQMfBXnju9nCVWV8pH8oja6u7Ujm725pWg


Powered by AlienEngine. Get yours now!