Can I store the blockchain in a different folder?

3 replies 189 views
coin_2013Member
Posts: 54 · Reputation: 198
#1Aug 7, 2018, 10:36 PM
Hey everyone! I’ve got a USB with a PIN for security, and I want to store my wallet there since it holds all my sensitive stuff like transactions and addresses. The USB doesn't have much space, so I’m planning to keep the blockchain files on my computer and everything else on the USB. I’ve come across a couple of ways to do this. Can you tell me which one’s better or if there’s a better way to go about it? OPTION 1: OPTION 2: Appreciate it!
2 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#2Aug 8, 2018, 03:54 AM
I prefer option 2. But i'm not fan of your approach since, 1. Sudden USB disconnection could cause file corruption. 2. If you only run Bitcoin Core when you need to access your wallet, syncing will take some time. 3. If you run Bitcoin Core without loading any wallet to keep the blockchain synced, you need to rescan blockchain when you load the wallet.
0 Reply Quote Share
LuckyCoinLegendary
Posts: 832 · Reputation: 4795
#3Aug 8, 2018, 03:36 PM
You should definitely use the -wallet option since it allows you to load and unload the wallet using the RPC commands, which can act as a sort of "Safely eject USB" trigger. Bitcoin Core will only read the wallet.dat file from the USB drive, which means there is no risk of data corruption if you unload it properly, and there is no sudden outage or shutdown.
1 Reply Quote Share
LuckyCoinLegendary
Posts: 832 · Reputation: 4795
#4Aug 8, 2018, 07:15 PM
You can use -wallet multiple times in the same command to load more than one wallet without restarting. Edit: I see you've deleted your previous post above this one but anyways, this is what you can do whenever you run a Bitcoin node in any sort of configuration, not necessarily limited to the one you had posted before.
4 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics