Blockchain folder
From DeFiChain-Wiki
Instructions for changing the directory of the blockchain data/snapshot for the DeFiChain wallet (Windows + MacOS)
Follow this procedure:
- Make sure that the DeFiChain app is closed
- Windows: Go to directory
C:\Users\<username>\.defi
(Mac: Go to directory~/.defi
) - Open the file
defi.conf
in your favourite text editor - Add the line:
datadir=<storage directory blockchain data>
. Important: The line has to be added before the[main]
section! - 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 addingwallets
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
- Save the file and start the app
- 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)
- 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.