Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: kefky on July 15, 2014, 09:20:04 AM



Title: Blockchain files and wallet.dat in different folders?
Post by: kefky on July 15, 2014, 09:20:04 AM
I would like to place the blockchain files in a different location than wallet.dat. Is this possible with Bitcoin Core?  ???
(I would like to avoid symlinks and "-datadir" is not a solution...)


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: BookLover on July 15, 2014, 05:56:50 PM
I realize this doesn't put the wallet.dat file in a different location but maybe it will solve your problem:
Code:
#Specify wallet file (within data directory)
-wallet=<file>

You may get more help if you post exactly what your trying to do.


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: roslinpl on July 15, 2014, 06:02:00 PM
I would like to place the blockchain files in a different location than wallet.dat. Is this possible with Bitcoin Core?  ???
(I would like to avoid symlinks and "-datadir" is not a solution...)


Code:
-wallet=<file>
indeed.

Well if zou are looking for all of the options you can visit: https://en.bitcoin.it/wiki/Running_Bitcoin

and as for example
Quote
Wallet options:
 -disablewallet         Do not load the wallet and disable wallet RPC calls
 -paytxfee=<amt>        Fee per kB to add to transactions you send
 -rescan                Rescan the block chain for missing wallet transactions
 -zapwallettxes         Clear list of wallet transactions (diagnostic tool; implies -rescan)
 -salvagewallet         Attempt to recover private keys from a corrupt wallet.dat
 -upgradewallet         Upgrade wallet to latest format
-wallet=<file>         Specify wallet file (within data directory)
 -walletnotify=<cmd>    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)
 -spendzeroconfchange   Spend unconfirmed change when sending transactions (default: 1)

There is a list with all of the command-line options that you can use while running Bitcoin Core.

If something is not on that list - it do not exist :)

Regards.


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: Sydboy on July 15, 2014, 07:47:26 PM
interesting i did not know -wallet was an option.
i had been using -datadir for a while now. do you have any idea which version of bitcoin-qt came out with -wallet ?

thanks :)


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: BookLover on July 15, 2014, 09:37:07 PM
Looks like Bitcoin Core version 0.9.0 was the first version to have this option.  https://bitcoin.org/en/release/v0.9.0 (https://bitcoin.org/en/release/v0.9.0) (search on this page for "wallet=" without the quotes to find it)


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: DeathAndTaxes on July 16, 2014, 04:08:49 AM
By the wording of the option "wallet=" only allows you to desginate the wallet by name within the data directory.  I don't believe it is possible to designate a different data and wallet location.


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: kefky on July 16, 2014, 10:00:30 AM
Indeed, "-wallet" is not a solution!

By the wording of the option "wallet=" only allows you to desginate the wallet by name within the data directory.  I don't believe it is possible to designate a different data and wallet location.


Title: Re: Blockchain files and wallet.dat in different folders?
Post by: RedDiamond on July 17, 2014, 07:37:10 AM
So what is wrong with symbolic links? They should work just fine.