Difference between revisions of "Blockchain folder"

From DeFiChain-Wiki
(move blockchain and walletdir entry)
Line 5: Line 5:
 
# Open the file <code>defi.conf</code> in text editor
 
# Open the file <code>defi.conf</code> in 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 line: <code>datadir=<storage directory blockchain data></code>    Important: The line has to be added before the <code>[main]</code> chapter)
 +
# 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>
 
# Example:  
 
# Example:  
 
<syntaxhighlight lang="ini">
 
<syntaxhighlight lang="ini">
Line 15: Line 16:
 
[main]
 
[main]
 
wallet=Wallet.dat
 
wallet=Wallet.dat
 +
walletdir=D:\defichain\wallets
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
<ol start="6">
 
<ol start="6">
<li>Save file and start app</li>
+
<li>Save file and start app
 +
</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 ca. 25GB)</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 datadir=D:\ defichain\Defi Blockchain
Line 25: Line 28:
 
</ol>
 
</ol>
  
The app 2.3.1 does not work correctly with a moved directory.
+
The app 2.3.3 work correctly with a moved directory.

Revision as of 10:27, 7 April 2021

Instructions for changing the directory of the blockchain data/snapshot for the defichain wallet

Procedure using Windows 10 as an example:

  1. Make sure that the DeFiChain app is closed
  2. Open directory C:\Users\<username>\.defi
  3. Open the file defi.conf in text editor
  4. add line: datadir=<storage directory blockchain data> Important: The line has to be added before the [main] chapter)
  5. If you move the default Folder from C:\Users\<username>\AppData\Roaming\DeFi Blockchain to the new directory change the walletdir=<storage directory blockchain data>\wallets
  6. Example:
rpcauth=something
rpcuser=something
rpcpassword=something
rpcpassword=something
rpcpassword=something
datadir=D:\defichain
[main]
wallet=Wallet.dat
walletdir=D:\defichain\wallets
  1. Save file and start 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 ca. 25GB)
  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.

The app 2.3.3 work correctly with a moved directory.