Download the blockchain faster - Expanse

Download the blockchain faster

  1. Home
  2. Docs
  3. Developer
  4. Download the blockchain faster

Download the blockchain faster

When you start an Expanse client, the Expanse blockchain is automatically downloaded. The time it takes to download the Expanse blockchain can vary based on client, client settings, connection speed, and number of peers available. Below are some options for more quickly obtaining the Expanse blockchain.

Using gexp

If you are using the gexp client, there are some things you can do to speed up the time it takes to download the Expanse blockchain. If you choose to use the –fast flag to perform an Expanse fast sync, you will not retain past transaction data.

Note: You cannot use this flag after performing all or part of a normal sync operation, meaning you should not have any portion of the Expanse blockchain downloaded before using this command. See this Expanse Stack.Exchange answer for more information.

Below are some flags to use when you want to sync your client more quickly.

–fast

This flag enables fast syncing through state downloads rather than downloading the full block data. This will also reduce the size of your blockchain dramatically. NOTE: –fast can only be run if you are syncing your blockchain from scratch and only the first time you download the blockchain for security reasons. See this Reddit post for more information.

–cache=1024

Megabytes of memory allocated to internal caching (min 16MB / database forced). Default is 16MB, so increasing this to 256, 512, 1024 (1GB), or 2048 (2GB) depending on how much RAM your computer has should make a difference.

–jitvm

This flag enables the JIT VM.

Full example command with console:

gexp –fast –cache=1024 –jitvm console

For more discussion on fast syncing and blockchain download times, see this Reddit post.

Exporting/Importing the blockchain

If you already have a full Expanse node synced, you can export the blockchain data from the fully synced node and import it into your new node. You can accomplish this in gexp by exporting your full node with the command gexp export filename and importing the blockchain into your node using gexp import filename. see this link

 

Articles

Tags , ,
Was this article helpful to you? Yes No

How can we help?

Come talk to us on Discord