Closed BenWestgate closed 4 months ago
Stale issue message
This is a good issue for any new contributor to try.
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.
Note: the changing of the HOME env variable should be within a background shell not the main process.
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.