GUI/Intro: pass -blocksdir to getPathToCheck if present - #948
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
pablomartin4btc
left a comment
There was a problem hiding this comment.
Concept ACK
The actual problem in #946 is the intro dialog's prune suggestion (only shown the first time bitcoin-qt runs) — FreespaceChecker checks datadir's free space but the prune trigger uses the full blockchain + chainstate threshold (~880 GB), incorrectly suggesting prune when -blocksdir is set since only ~14 GB of chainstate goes to datadir. Skipping the dialog avoids the wrong suggestion.
hebasto
left a comment
There was a problem hiding this comment.
I'm not sure this is the correct approach.
For example, it breaks the -choosedatadir option, which is now ignored when combined with -blocksdir:
$ ./build_dev_mode/bin/bitcoin-qt -choosedatadir -blocksdir=/tmp/test_blocksdir
# no intro dialog is shown282b7a5 to
cf2856b
Compare
cf2856b to
1ce7bdc
Compare
Can you please try this new approach? The dialog is now being shown for me and prune is disabled when running |
Fixes: #946