Difference between revisions of "Blockchain folder"

From DeFiChain-Wiki
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== Instructions for changing the directory of the blockchain data for the defichain wallet ==
+
== Instructions for changing the directory of the blockchain data/snapshot for the DeFiChain ==
Procedure using Windows 10 as an example
 
# open directory C:\Users\<username>\.defi
 
# open file defi.conf in text editor
 
# add line: datadir=<storage directory blockchain data> (example: datadir=D:\defichain)
 
# Save file and start wallet
 
<big>'''Attention, the current app 2.3.0 does not work correctly with a moved directory.'''</big>
 
  
 +
=== Windows ===
 +
Follow this procedure:
 +
# Make sure that the DeFiChain app is closed
 +
# Using Explorer go to directory <code>C:\Users\<username>\.defi</code> (Make sure you  [[Versteckte Ordner anzeigen|see hidden folders]])
 +
# Open the file <code>defi.conf</code> in your favorite text editor (e.g. Notepad)
 +
# Add the line: <code>datadir=<storage directory blockchain data></code>. '''Important''': The line has to be added before the <code>[main]</code> section! → Instead of <code><storage directory blockchain data></code>you have to enter the path where you want to move the blockchain folder
 +
# 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>
  
 +
Example:<syntaxhighlight lang="ini">
 +
rpcauth=something
 +
rpcuser=something
 +
rpcpassword=something
 +
rpcpassword=something
 +
rpcpassword=something
 +
datadir=D:\defichain
 +
[main]
 +
wallet=Wallet.dat
 +
walletdir=D:\defichain\wallets
 +
</syntaxhighlight>
  
[[Blockchain folder DE|Show this page in german]]
+
<ol start="6">
 +
<li>Save the file and start the 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: roughly 25 GB)</li>
 +
<li>If a blockchain folder already exists in the new path (e.g. because you moved it), then enter it in the path in <code>defi.conf</code>. 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.
 +
</li>
 +
</ol>
 +
 
 +
App v2.3.3 works correctly with a moved directory.
 +
 
 +
=== Mac ===
 +
Follow this procedure:
 +
# Make sure that the DeFiChain app is closed
 +
# Go to directory <code>~/.defi</code>  (Maybe you have to press <code>[CMD]</code> + <code>[SHIFT]</code> + <code>[.]</code>  to [[Versteckte Ordner anzeigen|see hidden folders]] or use <code>[CMD]</code> + <code>[SHIFT]</code> + <code>[G]</code> in Finder in your home folder and enter .defi in the popup).
 +
# Open the file <code>defi.conf</code> in your favourite text editor
 +
# Add the line: <code>datadir=<storage directory blockchain data></code>. Important: The line has to be added before the <code>[main]</code> section! →Instead of this variable <code><storage directory blockchain data></code>you have to add the path where you want to move the blockchain folder
 +
# If you move the default folder from <code>~/Library/Application Support/DeFi</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>
 +
Example:<syntaxhighlight lang="ini">
 +
rpcauth=something
 +
rpcuser=something
 +
rpcpassword=something
 +
rpcpassword=something
 +
rpcpassword=something
 +
datadir=/Users/me/defichain
 +
[main]
 +
wallet=wallet.dat
 +
walletdir=/Users/me/defichain/wallets
 +
</syntaxhighlight>
 +
 
 +
<ol start="6">
 +
<li>Save the file and start the 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: roughly 25 GB)</li>
 +
<li>If a blockchain folder already exists in the new path, then enter it in the path. For example <code>datadir=/User/me/Defi</code>. This makes it possible to copy the blockchain into the new directory beforehand without having to start a new sync.
 +
</li>
 +
</ol>
 +
 
 +
App v2.3.3 works correctly with a moved directory.

Latest revision as of 17:21, 13 April 2021

Instructions for changing the directory of the blockchain data/snapshot for the DeFiChain

Windows

Follow this procedure:

  1. Make sure that the DeFiChain app is closed
  2. Using Explorer go to directory C:\Users\<username>\.defi (Make sure you see hidden folders)
  3. Open the file defi.conf in your favorite text editor (e.g. Notepad)
  4. Add the line: datadir=<storage directory blockchain data>. Important: The line has to be added before the [main] section! → Instead of <storage directory blockchain data>you have to enter the path where you want to move the blockchain folder
  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

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 (e.g. because you moved it), then enter it in the path in defi.conf. 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.

Mac

Follow this procedure:

  1. Make sure that the DeFiChain app is closed
  2. Go to directory ~/.defi (Maybe you have to press [CMD] + [SHIFT] + [.] to see hidden folders or use [CMD] + [SHIFT] + [G] in Finder in your home folder and enter .defi in the popup).
  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! →Instead of this variable <storage directory blockchain data>you have to add the path where you want to move the blockchain folder
  5. If you move the default folder from ~/Library/Application Support/DeFi to the new directory also change the wallet directory accordingly by adding wallets to the data directory: walletdir=<storage directory blockchain data>/wallets

Example:

rpcauth=something
rpcuser=something
rpcpassword=something
rpcpassword=something
rpcpassword=something
datadir=/Users/me/defichain
[main]
wallet=wallet.dat
walletdir=/Users/me/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=/User/me/Defi. 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.