BenWestgate / Bails

Bails is a Bitcoin solution protecting against surveillance, censorship, and confiscation. It installs Bitcoin Core to Tails encrypted Persistent Storage, creates and recovers Bitcoin Core wallets from Codex32 (BIP93) seed backups, and creates backup Bails USB sticks and shareable blank Bails USB sticks. Learn more in README.md.
MIT License
45 stars 8 forks source link

The "limiting block storage to X GB" in my Bitcoin Core Info does not match what is displayed in the GUI. #35

Closed BenWestgate closed 4 months ago

BenWestgate commented 1 year ago

2 GB matches 2GB but 6GB was displayed in my dialog and 7GB in the Bitcoin Core GUI. This is likely due to an off by 1MiB error or insufficient precision in my conversion between GB and MiB, check bitcoin core's code for converting between the two formats.

github-actions[bot] commented 6 months ago

Stale issue message

BenWestgate commented 6 months ago

This is a good issue for any new contributor to try.

BenWestgate commented 6 months ago

The best way to fix this is run the command:

HOME+=/Persistent
bitcoin-qt -choosedatadir

This will change the default to match the custom data directory. Only the prune will need to be set to the highest value that doesn't show the warning: available minus 10. This will allow removing the dialog entirely and considerable code.

BenWestgate commented 6 months ago

Note: the changing of the HOME env variable should be within a background shell not the main process.