Bitcoin Forum
November 01, 2024, 06:56:41 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dealing with multiple wallet.dat files  (Read 2185 times)
mackminer (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



View Profile
December 25, 2011, 04:16:34 PM
 #1

Hi,
My problem is having to copy another dat file into the application folder and swapping back then again.

Is there a better method than this?

Thanks.

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
Drifter
Sr. Member
****
Offline Offline

Activity: 364
Merit: 252


View Profile
December 25, 2011, 04:40:28 PM
 #2

You could always rename the wallet.dat file something else and keep it in the app folder. Then you just need to rename it back to wallet.dat when you want to use it and restart bitcoin.
Still a bit of useless work, but I believe future clients are working on wallet swaps.

dancupid
Hero Member
*****
Offline Offline

Activity: 955
Merit: 1002



View Profile
December 25, 2011, 04:42:27 PM
 #3

Hi,
My problem is having to copy another dat file into the application folder and swapping back then again.

Is there a better method than this?

Thanks.

There doesn't appear to be.
file->open wallet and file->save wallet would be nice at the very least (with some sort of sensible naming protocol). 'Add wallet to current wallet' would be useful too.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
December 25, 2011, 04:44:24 PM
Last edit: December 25, 2011, 04:57:43 PM by psy
 #4

Why don't you just create another application data dir and start the client with the -datadir=<wallet2dir> param when you wish to use that other wallet.dat? You can even create shortcuts for your 2 wallets.
Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.
It will take some minutes to setup, but you'll only do it once Wink
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
December 25, 2011, 04:45:54 PM
 #5

There isn't, at least, so far

A "open wallet" button would be helpful but so far...nothing

mackminer (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



View Profile
December 25, 2011, 05:37:58 PM
 #6

Thanks for the replies. I'll create the client that's directed to another .dat file then.

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
December 26, 2011, 11:04:51 AM
 #7

Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.

OP didn't specify if he's using a symlink-capable OS. Even if he is, I'm pretty sure the client won't like the blockchain being updated from another process. Having multiple datadirs seems the best solution, but it will use a lot more disk space.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
December 26, 2011, 02:33:08 PM
Last edit: December 26, 2011, 02:45:14 PM by psy
 #8

Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.

OP didn't specify if he's using a symlink-capable OS. Even if he is, I'm pretty sure the client won't like the blockchain being updated from another process. Having multiple datadirs seems the best solution, but it will use a lot more disk space.

That's why I said "Maybe". But almost(?) all Linux flavors support them, MacOS also, hell, even Windows Vista and 7 support symlinks. There is a good chance that the OP is using a symlink capable OS
About the blockchain being updated from another process, it won't be. He shuts down wallet1 bitcoin client and starts the same bitcoin client pointing to the data dir that contains wallet2. No need to run 2 clients at the same time. 1 binary - 2 data dirs.
Hope I made myself clear now.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
December 26, 2011, 02:52:57 PM
 #9

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
December 26, 2011, 03:07:36 PM
 #10

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

2 business/uses that the OP want in no way to get linked to eachother without having to worry much Wink
notme
Legendary
*
Offline Offline

Activity: 1904
Merit: 1002


View Profile
December 26, 2011, 03:28:26 PM
 #11

Right, I wouldn't run two daemons with symlinked blockchains at the same time, but it should be fine if you only run one.  Personally, I use separate datadirs on BTRFS.  Occasionally, I shut down everything and do a 'cp --reflink=always' of the blockchain to use Copy-On-Write.  This shares the common data between the two sets of files.  I've got way too much disk space though, so I don't have to do this very often.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
dancupid
Hero Member
*****
Offline Offline

Activity: 955
Merit: 1002



View Profile
December 26, 2011, 03:47:37 PM
 #12

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

I have about 10 wallets - I had no intention to create 10 wallets but I have 10 wallets.
I back up one, then there is a new client so a create another, then I create an encrypted wallet then I hear that the encryption didn't work properly so I create another with the next version then I back that up, then I lose track of which wallet is the correct wallet, and worry that I created it in Windows rather than my virtualized Ubuntu so I create another (my final one) and then ....
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
December 26, 2011, 07:20:10 PM
 #13

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.
You keep most of your btc on the safer wallet and less on the wallet you use daily...

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!