9

I know that Bitcoin supports the -datadir command line option which specifies that the wallet.dat and blockchain should be stored in a custom location rather than %appdata%\roaming\bitcoin but is there a way to specify a wallet location without also changing the blockchain location? I have a highly secured spot I'd like to stash my wallet.dat in (permanently) but I don't want to stash ~2GB of blockchain data alongside it.

Stéphane Gimenez
  • 5,134
  • 3
  • 32
  • 38
David Perry
  • 14,378
  • 5
  • 62
  • 99

2 Answers2

3

A symlink will do it on Linux.

On Windows there's a symbolic link method as well:

A -walletdir= feature has been requested before:

Stephen Gornick
  • 27,040
  • 12
  • 67
  • 141
  • +1 That's what I do. But sometimes the symlink gets clobbered (fortunately, just the link, not the wallet): https://github.com/bitcoin/bitcoin/issues/660 – Thilo Apr 20 '12 at 03:22
  • 1
    That's fantastic, how did I not know Win7 had symlinks?! – David Perry Apr 20 '12 at 16:31
0

The next Bitcoin Core release will have -walletdir, which'll basicly allow you to do it without requiring tricks.

https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0

https://github.com/bitcoin/bitcoin/pull/11466

MCCCS
  • 10,206
  • 5
  • 27
  • 56