kyokan / bob-wallet

Bob Wallet is a GUI for DNS Record Management and Name Auctions on Handshake. It includes an integrated full node: hsd
https://www.bobwallet.io/
GNU General Public License v3.0
380 stars 92 forks source link

Feature Request: Method to change storage location for blockchain download. #651

Closed stephend9 closed 6 months ago

stephend9 commented 7 months ago

I'm running the AppImage version on Linux on a machine with limited internal storage capacity. I would like a way to select where to store the Handshake blockchain that this app downloads. It starts downloading and fills up my hard drive space each time I try to get it working.

Expected Behavior

I'd like to be able to select an external SSD as the home for this file before it starts downloading for the first time.

Current Behavior

The download goes somewhere on my boot drive and fills it up until my laptop grinds to a halt.

Steps to Reproduce

  1. Fill up your drive most of the way.
  2. Run the AppImage and try to create a wallet.

Context (Environment)

This issue has crashed my machine a few times. I'd simply like to be able to hold my TLDs on a self custody wallet instead of on a CEX.

Thanks for all the work so far creating this wallet and any help you're able to offer me. Go team HNS!

rithvikvibhu commented 7 months ago

There's an option for this already: Settings -> Network & Connection -> Data Directory.

  1. Open Bob and set the new directory path in settings. This will not automatically move the data.
  2. Close Bob
  3. Move the hsd_data to the new location
  4. Open Bob, it should use data from the new location.

Ex:

P.S. This will move blockchain data to another location, but Bob settings (like preferences and watching list) will still stay where it is currently. But that's not an issue since it takes up negligible space.

stephend9 commented 7 months ago

Thanks so much for pointing this out. Sorry, I guess I missed it somehow. I'll give this a try and report back.

stephend9 commented 7 months ago

Okay, so I tried changing the location setting and at first I wasn't able to (while the blockchain was still downloading, perhaps there should be a way to do this pre-download). I thought it was because the blockchain was still synchronizing, so I deleted all my computer backups to free up HDD space and finally made enough room to download the entire blockchain.

Once the chain download was done I changed the setting you told me about to reference the new hsd_data folder that I created on the external drive. exited Bob, copied the entire hsd_data folder to my external drive,Then I renamed the old hsd_data folder that was created automatically when I first ran Bob Wallet, and re-lauched the app.

Instead of referencing the new location on the external drive, Bob simply created a new hsd_data in the old default location and started re-synchronizing the blockchain from scratch.

I've been working on this issue for many hours, on multiple days and attempts and I'd really like to get this solved. How can I get Bob to recognize the new external drive location of the data???

Is there any other debugging information I can help provide? Thanks for your help in troubleshooting this issue 🙏


Edit/Update. Sorry, user error (I renamed the hsd_data folder on the external drive to 'hsd_data (old)', instead of the one I meant to do on the internal HDD). Looks like everything is working now. Thanks for the help.

rithvikvibhu commented 6 months ago

Glad it's working!