Difference between revisions of "Blockchain folder"

From DeFiChain-Wiki
(move blockchain and walletdir entry)
(Added MacOS instructions, reworked format)
Line 1: Line 1:
== Instructions for changing the directory of the blockchain data/snapshot for the defichain wallet ==
+
== Instructions for changing the directory of the blockchain data/snapshot for the DeFiChain wallet (Windows + MacOS) ==
Procedure using Windows 10 as an example:
+
Follow this procedure:
 
# Make sure that the DeFiChain app is closed
 
# Make sure that the DeFiChain app is closed
# Open directory C:\Users\<username>\.defi
+
# Windows: Go to directory <code>C:\Users\<username>\.defi</code> (Mac: Go to directory <code>~/.defi</code>)
# Open the file <code>defi.conf</code> in text editor
+
# Open the file <code>defi.conf</code> in your favourite text editor
# add line: <code>datadir=<storage directory blockchain data></code>   Important: The line has to be added before the <code>[main]</code> chapter)
+
# Add the line: <code>datadir=<storage directory blockchain data></code>. Important: The line has to be added before the <code>[main]</code> section!
# If you move the default Folder from C:\Users\<username>\AppData\Roaming\DeFi Blockchain to the new directory change the <code>walletdir=<storage directory blockchain data>\wallets</code>
+
# If you move the default folder from <code>C:\Users\<username>\AppData\Roaming\DeFi Blockchain</code> to the new directory also change the wallet directory accordingly by adding <code>wallets</code> to the data directory:  <code>walletdir=<storage directory blockchain data>\wallets</code> (MacOS: Default wallet directory is <code>~/Library/Application Support/Defi/wallets</code>, change to correct path)
# Example:  
+
Example:<syntaxhighlight lang="ini">
<syntaxhighlight lang="ini">
 
 
rpcauth=something
 
rpcauth=something
 
rpcuser=something
 
rpcuser=something
Line 20: Line 19:
  
 
<ol start="6">
 
<ol start="6">
<li>Save file and start app
+
<li>Save the file and start the app
 
</li>
 
</li>
<li>The app now recreates the blockchain folders in the datadir and will start with a complete download of the whole blockchain. (16.3.2021 ca. 25GB)</li>
+
<li>The app now recreates the blockchain folders in the datadir and will start with a complete download of the whole blockchain. (16.3.2021: roughly 25 GB)</li>
<li>If a blockchain folder already exists in the new path, then enter it in the path. For example datadir=D:\ defichain\Defi Blockchain
+
<li>If a blockchain folder already exists in the new path, then enter it in the path. For example <code>datadir=D:\ defichain\Defi Blockchain</code>. This makes it possible to copy the blockchain into the new directory beforehand without having to start a new sync.
This makes it possible to copy the blockchain into the new directory beforehand without having to start a new sync.
 
 
</li>
 
</li>
 
</ol>
 
</ol>
  
The app 2.3.3 work correctly with a moved directory.
+
App v2.3.3 works correctly with a moved directory.

Revision as of 09:39, 7 April 2021

Instructions for changing the directory of the blockchain data/snapshot for the DeFiChain wallet (Windows + MacOS)

Follow this procedure:

  1. Make sure that the DeFiChain app is closed
  2. Windows: Go to directory C:\Users\<username>\.defi (Mac: Go to directory ~/.defi)
  3. Open the file defi.conf in your favourite text editor
  4. Add the line: datadir=<storage directory blockchain data>. Important: The line has to be added before the [main] section!
  5. If you move the default folder from C:\Users\<username>\AppData\Roaming\DeFi Blockchain to the new directory also change the wallet directory accordingly by adding wallets to the data directory: walletdir=<storage directory blockchain data>\wallets (MacOS: Default wallet directory is ~/Library/Application Support/Defi/wallets, change to correct path)

Example:

rpcauth=something
rpcuser=something
rpcpassword=something
rpcpassword=something
rpcpassword=something
datadir=D:\defichain
[main]
wallet=Wallet.dat
walletdir=D:\defichain\wallets
  1. Save the file and start the app
  2. The app now recreates the blockchain folders in the datadir and will start with a complete download of the whole blockchain. (16.3.2021: roughly 25 GB)
  3. If a blockchain folder already exists in the new path, then enter it in the path. For example datadir=D:\ defichain\Defi Blockchain. This makes it possible to copy the blockchain into the new directory beforehand without having to start a new sync.

App v2.3.3 works correctly with a moved directory.