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

From DigiByte Wiki
Jump to navigation Jump to search
m
 
(100 intermediate revisions by 4 users not shown)
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 how to speed up the sync period of the DigiByte core wallet.'''
  
''Alternatively you can download a [http://cryptochainer.com/dir/ Bootstrap for DigiByte] and then follow the [http://cryptochainer.com/dir/?page_id=154 instructions here].''
+
DigiByte is the longest UTXO blockchain in existence which has almost 19 million blocks, the size of the these blocks is around 36GB as of March 2024.
  
 
+
It is not too much compared to Bitcoin’s chain size which is over 550GB. Sync process of the DigiByte core wallet usually takes 8 to 16 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.
  
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 worth 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.
+
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.
  
Hover your mouse over the connections to see how many people you’re connected to. 8+ is ideal":
+
If you are ready, let’s take the necessary steps together:
  
[https://imgur.com/nt57VuR Connections]
+
1) If you are installing the DGB core wallet for the first time, download it for your operating system; [https://github.com/DigiByte-Core/digibyte/releases/download/v7.17.3/digibyte-7.17.3-win64-setup-signed.exe Windows], [https://github.com/DigiByte-Core/digibyte/releases/download/v7.17.3/digibyte-7.17.3-osx-unsigned.dmg macOS], [https://github.com/DigiByte-Core/digibyte/releases/download/v7.17.3/digibyte-7.17.3-x86_64-linux-gnu.tar.gz Linux].Install it as usual but <u>'''do not run it at this phase'''</u>.If you already have a core wallet and trying to clean install or upgrade, <u>'''backup your wallet.dat file'''</u> (File > Backup Wallet) and shut down your core wallet.
  
&nbsp;
+
2) Download the two .zip files from [https://drive.usercontent.google.com/download?id=1U8G7Ykazs-Cm5CLmX7bV8sjyuEQoqXBp&export=download&authuser=0 here] and [https://drive.usercontent.google.com/download?id=1MwgrWozNt1ztZqpbB8Hq7Sx4FE-OJw5m&export=download&authuser=0 here]. Due to quota limitations on google drive, it was necessary to split the files in to two archives. (If you see "Daily quota exceeded error" you can bypass it by following instructions in [https://www.youtube.com/watch?v=R5q3XpdWfaQ this video].) It's about 24GB compressed, as of March 2024. The best thing about these files is that they are hosted on Google servers ensuring that you can reach your maximum download speed wherever you are in the world. That means you can download them fairly fast if you have 100Mbps or higher download speed.
  
If it shows zero connections, that indicates an issue with your Firewall, AntiVirus, or your DNS. However, that’s outside of the scope of this guide.
+
3) After the download is complete, go to folder below according to your OS. (You may need to set hidden files as visible, then create DigiByte folder at this phase.)<br  />  Windows: Users\Username\Appdata\Roaming\DigiByte\ (Or run%AppData%\DigiByte)<br  />  macOS: ~/Library/Application Support/DigiByte/<br  />  Linux: ~/.digibyte/
  
&nbsp;
+
4) Delete all files <u>'''EXCEPT wallet.dat'''</u> file (or 'wallets' folder, if it exists) from your DigiByte folder.
  
To manually add more peers to help speed up your download, you can go to:
+
5) Copy the two .zip files you downloaded, into the DigiByte folder and unzip them 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. There’s a small .txt file with some instructions, included in the two .zip files.
  
[https://www.whatsmydns.net/#A/seed.digibyte.io https://www.whatsmydns.net/#A/seed.digibyte.io]
+
6) You can delete the two .zip files after unzipping them, or keep them for future use.
  
&nbsp;
+
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 few minutes and start contributing to the DigiByte blockchain.
  
Next, grab some of the IP addresses, you’ll want to add maybe a dozen?
+
You can also open the port 12024 on your router and forward it to a fixed local ip address of the your computer. For port forwarding instructions please [https://www.dgbwiki.com/index.php?title=Port_forwarding_process_for_your_DigiByte_node click here].
 
 
[https://imgur.com/8QHx6zX IP addresses]
 
 
 
&nbsp;
 
 
 
Then in your DigiByte Core Wallet go to Help -> Debug Window -> Console
 
 
 
[https://imgur.com/fEJdbHr Console]
 
 
 
&nbsp;
 
 
 
From here, type in:
 
 
 
“''addnode IPADDRESS add''”
 
 
 
&nbsp;
 
 
 
'''''NOTE: You want to repeat this process approx a dozen to a dozen to two dozen times, each with a different IP address'''''
 
 
 
Substitute&nbsp;''IPADDRESS''&nbsp;for the IP addresses you got from the whatsmydns website. Be sure to use some that are as close to you as possible, for example if you’re in the USA there’s no point adding IP’s from Italy etc.
 
 
 
'''''Tip: It should say “null” afterwards. That means “There was no error adding them” and so it’s been correctly added as a node'''''
 
 
 
IF you see “method not found (code -32601)”, it means you’ve not entered it in the correct format, so try again.
 
 
 
&nbsp;
 
 
 
Once you’ve added several more, you should see the speed increase for your Blockchain the download. It can also help if you tell your AntiVirus to exclude the folder that you told DigiByte to store the Blockchain in. For most people on Windows this is “%appdata%\DigiByte”.
 
 
 
&nbsp;
 
 
 
Then, just leave the DigiByte Core Wallet open and downloading the Blockchain, come back later, and you’ll be ready to go!
 

Latest revision as of 09:05, 28 March 2024

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

DigiByte is the longest UTXO blockchain in existence which has almost 19 million blocks, the size of the these blocks is around 36GB as of March 2024.

It is not too much compared to Bitcoin’s chain size which is over 550GB. Sync process of the DigiByte core wallet usually takes 8 to 16 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 two .zip files from here and here. Due to quota limitations on google drive, it was necessary to split the files in to two archives. (If you see "Daily quota exceeded error" you can bypass it by following instructions in this video.) It's about 24GB compressed, as of March 2024. The best thing about these files is that they are hosted on Google servers ensuring that you can reach your maximum download speed wherever you are in the world. That means you can download them fairly fast if you have 100Mbps or higher download speed.

3) After the download is complete, go to folder below according to your OS. (You may need to 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 (or 'wallets' folder, if it exists) from your DigiByte folder.

5) Copy the two .zip files you downloaded, into the DigiByte folder and unzip them 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. There’s a small .txt file with some instructions, included in the two .zip files.

6) You can delete the two .zip files after unzipping them, or keep them for future use.

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 few minutes and start contributing to the DigiByte blockchain.

You can also open the port 12024 on your router and forward it to a fixed local ip address of the your computer. For port forwarding instructions please click here.