Difference between revisions of "Speeding up sync for your DigiByte Core Wallet"

From DigiByte Wiki
Jump to navigation Jump to search
Line 1: Line 1:
  
'''Here’s a quick guide on how to add additional nodes / connections to the DigiByte network, in a bid to help speed up your blockchain download.'''
+
'''Here’s a quick guide speed up the sync period of the DigiByte core wallet.'''
 +
 
 +
DigiByte is the longest UTXO blockchain in existence which has over 9.230.000 blocks and the size of the these blocks is around 13GB as of August 2019.
 +
 
 +
It is not too much compared to Bitcoin’s chain size which is around 133GB. Sync process of the DigiByte core wallet usually takes 3 to 8 hours according to your bandwidth and hardware specifications. This period can be significantly shortened when you use an SSD storage. After all it is still pretty acceptable time period for setting up a full node but if you have a low bandwidth and weak hardware or if you are in hurry then you may need a faster way.
 +
 
 +
Downloading a copy of the blockchain is the most known way to speed core wallet sync up. In fact, it’s not a good way to keep decentralization at a high level but if you really need it, there is nothing wrong with using it.
 +
 
 +
If you are ready, let’s take the necessary steps together…
 
<blockquote>
 
<blockquote>
''Alternatively you can download the [http://bit.ly/dgbchain Bootstrap zip file] (9,2GB Aug18,2019)&nbsp;for DigiByte then follow the instructions below;<br/> 1) [https://github.com/digibyte/digibyte/releases/ Install] the core wallet but don't launch it.<br/> 2) Copy the zip file to the related folder below;&nbsp;(Show hidden files and create folders if needed)<br/> &nbsp; &nbsp; &nbsp;Windows: Users\~\Appdata\Roaming\DigiByte\<br/> &nbsp; &nbsp; &nbsp;macOS: ~/Library/Application Support/DigiByte/<br/> &nbsp; &nbsp; &nbsp;Linux: ~/.digibyte/<br/> 3) Create backup of your wallet.dat file. (If exist)<br/> 4) Delete all files except wallet.dat and zip file.<br/> 5) Unzip the zip file directly into the folder.&nbsp;(blocks folder must be in the DigiByte folder)<br/> 6) Delete the zip file and launch your core wallet.''
+
1) If you are installing the DGB core wallet for the first time, download it for your operating system;&nbsp;[https://github.com/digibyte/digibyte/releases/download/v7.17.2/digibyte-7.17.2-win64-setup.exe Windows], [https://github.com/digibyte/digibyte/releases/download/v7.17.2/digibyte-7.17.2-osx.dmg macOS], [https://github.com/digibyte/digibyte/releases/download/v7.17.2/digibyte-7.17.2-x86_64-linux-gnu.tar.gz Linux].&nbsp;Install it as usual but <u>'''do not run it at this phase'''</u>.&nbsp;If you already have a core wallet and trying to clean install or upgrade, <u>'''backup your wallet.dat file'''</u>&nbsp;(File > Backup Wallet)&nbsp;and shut down your core wallet.
</blockquote>
+
 
Opening your DigiByte Core Wallet for the first time, you’ll be greeted by a screen telling you it needs to sync around 5 years'&nbsp;worth&nbsp;of transactions. That in itself isn’t too bad, as of July 2019 it’s around 13GB. What you want is to be connected to as many peers (nodes) as possible, in order to get it to download as fast as possible.
+
2) Download&nbsp;the Bootstrap&nbsp;[http://bit.ly/dgbchain DigiByte.zip]&nbsp;file.&nbsp;It is about 9,2GB as of August&nbsp;2019 and regularly updating a couple of times in a month. The best thing about this file is that it is hosted on Google servers ensuring that you can reach your maximum download speed wherever you are in the world. That means you can download it in 13&nbsp;minutes if you have 100Mbps download speed.
  
Open a text editor and save the following content as "digibyte.conf" file then put it into your block&nbsp;directory.<br/> ''“In this instance you&nbsp;must&nbsp;include the speech marks, otherwise it will save it as digibyte.conf.txt which you&nbsp;don’t&nbsp;want!”''
+
3)&nbsp;After the download is complete, go to folder below according to your OS.&nbsp;(You may need so set hidden files as visible then create DigiByte folder at this phase.)<br/> &nbsp; &nbsp; Windows: Users\Username\Appdata\Roaming\DigiByte\ (Or run&nbsp;%AppData%\DigiByte)<br/> &nbsp; &nbsp; macOS: ~/Library/Application Support/DigiByte/<br/> &nbsp; &nbsp; Linux: ~/.digibyte/
  
'''maxconnections=150<br/> addnode=seed1.digibyte.io<br/> addnode=seed2.digibyte.io<br/> addnode=seed3.digibyte.io<br/> addnode=seed.digibyte.io<br/> addnode=seed.digibyteprojects.com<br/> addnode=digihash.co<br/> addnode=digiexplorer.info<br/> addnode=seed.digibyteguide.com<br/> addnode=seed-1.us.digibyteservers.io<br/> addnode=digibyte.host<br/> addnode=dgb-peer.nownodes.io'''
+
4)&nbsp;Delete all files <u>'''EXCEPT wallet.dat'''</u>&nbsp;file (if exist)&nbsp;from your DigiByte folder.
  
Default block directories for operating systems;
+
5)&nbsp;Copy the DigiByte.zip file you downloaded into the DigiByte folder and unzip it directly into that folder. Do not create a new folder while unzipping it, blocks folder and wallet.dat file must be in the same folder.
  
Windows: C:\Users\UserName\Appdata\Roaming\DigiByte\digibyte.conf<br/> macOS: ~/Library/Application Support/DigiByte/digibyte.conf<br/> Linux: ~/.digibyte/digibyte.conf
+
6)&nbsp;You can delete DigiByte.zip file after unzipping it. It also includes an optimized digibyte.conf file that allows you to connect to more nodes faster. If you want to use&nbsp;your own digibyte.conf file you can also delete it.
  
Then, just leave the DigiByte Core Wallet open and downloading the Blockchain, come back later, and you’ll be ready to go! It usually takes 3 to 8 hours according to&nbsp;your hardware and network conditions.
+
7)&nbsp;Now you are ready to run your core wallet. At first start, it will ask you the default chain folder which points the folder you prepared. Do not change it unless you prepared a folder in a different location. Your core wallet will be ready to use in a couple of minutes and start contributing the DigiByte blockchain.
 +
</blockquote>
 +
You can also open the port 12024 on your router and forward&nbsp;it to fixed local ip of the your device.&nbsp;By doing this you will be able to accept incoming connections to your core wallet.
  
You can also open the port 12024 on your router and [http://www.pcwintech.com/port-forwarding-guides forward] it to your node&nbsp;for accepting incoming connections.
+
Each router manufacturer has a different UI and setup menu for the port forwarding. You can refer [http://www.pcwintech.com/port-forwarding-guides PcWinTech’s guide] to find your settings.

Revision as of 13:01, 20 August 2019

Here’s a quick guide speed up the sync period of the DigiByte core wallet.

DigiByte is the longest UTXO blockchain in existence which has over 9.230.000 blocks and the size of the these blocks is around 13GB as of August 2019.

It is not too much compared to Bitcoin’s chain size which is around 133GB. Sync process of the DigiByte core wallet usually takes 3 to 8 hours according to your bandwidth and hardware specifications. This period can be significantly shortened when you use an SSD storage. After all it is still pretty acceptable time period for setting up a full node but if you have a low bandwidth and weak hardware or if you are in hurry then you may need a faster way.

Downloading a copy of the blockchain is the most known way to speed core wallet sync up. In fact, it’s not a good way to keep decentralization at a high level but if you really need it, there is nothing wrong with using it.

If you are ready, let’s take the necessary steps together…

1) If you are installing the DGB core wallet for the first time, download it for your operating system; Windows, macOS, Linux. Install it as usual but do not run it at this phase. If you already have a core wallet and trying to clean install or upgrade, backup your wallet.dat file (File > Backup Wallet) and shut down your core wallet.

2) Download the Bootstrap DigiByte.zip file. It is about 9,2GB as of August 2019 and regularly updating a couple of times in a month. The best thing about this file is that it is hosted on Google servers ensuring that you can reach your maximum download speed wherever you are in the world. That means you can download it in 13 minutes if you have 100Mbps download speed.

3) After the download is complete, go to folder below according to your OS. (You may need so set hidden files as visible then create DigiByte folder at this phase.)
    Windows: Users\Username\Appdata\Roaming\DigiByte\ (Or run %AppData%\DigiByte)
    macOS: ~/Library/Application Support/DigiByte/
    Linux: ~/.digibyte/

4) Delete all files EXCEPT wallet.dat file (if exist) from your DigiByte folder.

5) Copy the DigiByte.zip file you downloaded into the DigiByte folder and unzip it directly into that folder. Do not create a new folder while unzipping it, blocks folder and wallet.dat file must be in the same folder.

6) You can delete DigiByte.zip file after unzipping it. It also includes an optimized digibyte.conf file that allows you to connect to more nodes faster. If you want to use your own digibyte.conf file you can also delete it.

7) Now you are ready to run your core wallet. At first start, it will ask you the default chain folder which points the folder you prepared. Do not change it unless you prepared a folder in a different location. Your core wallet will be ready to use in a couple of minutes and start contributing the DigiByte blockchain.

You can also open the port 12024 on your router and forward it to fixed local ip of the your device. By doing this you will be able to accept incoming connections to your core wallet.

Each router manufacturer has a different UI and setup menu for the port forwarding. You can refer PcWinTech’s guide to find your settings.